commit | 77ec38d526e9f6d9773b35b4c6282ed56045caf6 | [log] [tgz] |
---|---|---|
author | Xiaozhe Shi <xiaozhes@codeaurora.org> | Mon Apr 29 16:41:58 2013 -0700 |
committer | Xiaozhe Shi <xiaozhes@codeaurora.org> | Thu May 09 17:00:24 2013 -0700 |
tree | 634615a9e2f3ad1f1add9a0b774d715ec20c4def | |
parent | 47f6ef0b75d4dafcfb63aa59e946a9e0a25dd3c2 [diff] |
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: Xiaozhe Shi <xiaozhes@codeaurora.org>