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

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

power: qpnp-bms: detect warm resets



During warm PMIC resets, the BMS will not take a new OCV. This may
cause the SOC upon reboot to be completely wrong if no recent OCVs
have been taken.

Fix this by checking for invalid OCVs and warm resets. If either
occur, estimate a new OCV based on vbat and use that instead.

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