power: qpnp-bms: do not adjust OCV during charging
Previously, the BMS driver adjusted OCV during charging in order to
make sure SoC does not jump when charging stops before hitting full.
With the new SoC weighting algorithm during CV, this scheme causes
inaccuracies by creating a negative feedback loop that incorrectly
freezes SoC at the CC to CV point.
Fix this by simply not adjusting OCV during charging. Instead adjust
the OCV to the currently calculated SoC once charging stops.
Change-Id: Ic7144ce4f5d4fdba9ed7d83c604b8d6bd8d2a0fd
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
1 file changed