Lähettäjä: Pali Rohár Päiväys: Vastaanottaja: Sicelo A. Mhlongo Kopio: Krzysztof Kozlowski, linux-pm, sre, linux-kernel, maemo-leste Aihe: Re: [maemo-leste] [PATCH] power: supply: bq27xxx_battery: do not
update cached flags prematurely
cc Krzysztof, author of the mentioned commit.
On Monday 25 November 2024 17:29:30 Sicelo A. Mhlongo wrote: > Commit 243f8ffc883a1 ("power: supply: bq27xxx_battery: Notify also about
> status changes") intended to notify userspace when the status changes,
> based on the flags register. However, the cached state is updated too
> early, before the flags are tested for any changes. Remove the premature
> update.
>
> Fixes: 243f8ffc883a1 ("power: supply: bq27xxx_battery: Notify also about status changes")
> Signed-off-by: Sicelo A. Mhlongo <absicsz@???>
> ---
> drivers/power/supply/bq27xxx_battery.c | 1 -
> 1 file changed, 1 deletion(-)
>