Commit eae034cd authored by Sicelo A. Mhlongo's avatar Sicelo A. Mhlongo Committed by Greg Kroah-Hartman
Browse files

power: supply: bq27xxx_battery: do not update cached flags prematurely



[ Upstream commit 45291874 ]

Commit 243f8ffc ("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: 243f8ffc ("power: supply: bq27xxx_battery: Notify also about status changes")
Signed-off-by: default avatarSicelo A. Mhlongo <absicsz@gmail.com>
Link: https://lore.kernel.org/r/20241125152945.47937-1-absicsz@gmail.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 005d8de0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment