Re: [PATCH 3/5] power: supply: sc27xx: Add fuel gauge low voltage alarm

From: Baolin Wang
Date: Mon Nov 26 2018 - 01:15:44 EST

Hi Pavel,
On Mon, 26 Nov 2018 at 05:45, Pavel Machek <pavel@xxxxxx> wrote:
> On Wed 2018-11-14 17:07:06, Baolin Wang wrote:
> > From: Yuanjiang Yu <yuanjiang.yu@xxxxxxxxxx>
> >
> > Add low voltage alarm support to make sure the battery capacity
> > more accurate in lower voltage stage.
> >
> > Signed-off-by: Yuanjiang Yu <yuanjiang.yu@xxxxxxxxxx>
> > Signed-off-by: Baolin Wang <>
> Should we also shut down the system when that happens, as battery is
> empty?
> Or is there any lower threshold when we should do the shutdown?

We do not shutdown the system when battery is empty in fuel gauge
driver, instead we should do that in charger manager service or other
upper layers. In fuel gauge driver, we should just supply the accurate
battery capacity for upper layer.

Baolin Wang
Best Regards