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

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

power: qpnp-bms: Fix SoC smoothing upon resume



Currently the BMS driver tries to smooth out SoC jumps by limiting
the percent SoC change by the time since the last SoC change.
However, this can lead to an issue where report_state_of_charge is
called before SoC can be unbound. This will increment SoC by 1, but
create a situation where SoC is stuck when the time elapsed gets
reset.

Fix this by resetting the time elapsed only when doing an unbound
SoC report.

Change-Id: I6bdcc8d40b79653b003cc372570091f8adb30164
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent af2051d3
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