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

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

power: qpnp-bms: do not adjust if batfet is open



We observed a issue where the SOC was being reported lower than
100% after end of charge. When charging finishes, the pmic opens
up the batfet and isolates the battery from the circuit. However
the BMS does not read 0mA for battery current, possibly because
of some stray voltage on rsense, instead it reads around 0.5mA
of charge current.The charging adjusting algorithm assumes that
the battery is still being charged, and ends up returning the
previous SOC, since it sees that the battery voltage has dropped
from 4.2volts.

We are calling the charging adjusting algorithm erroneously, avoid
this by checking if the batfet is open.

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