Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4303640d authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-bms: fix voltage based soc reporting issues



When voltage based soc is enabled, we did not call power_supply_changed
every time the SOC changed. This caused the UI to not update.

Fix this by moving the voltage based soc calculation into the same
workqueue task that updates SoC.

This may break Coulomb counter-based SoC if enabled post-boot, so remove
the module param for voltage-based SoC and make it only configurable at
boot time.

Change-Id: Ieb4a84bb6f0eaca0b0b4489ac923891fad63dd03
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 8e2e7c39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment