power: qpnp-smb5: Handle cc_soc jump in the overcharge WA
There may be a jump in cc_soc due to a change in learnt
capacity or a good_ocv update. Fix this by detecting
a cc_soc jump by comparing against its last value.
Reinitialize the cc_soc_reference if a jump is detected.
Change-Id: I7a016cdf89904f4d5ecbfd9b9afbd05fbfe6244c
Signed-off-by:
Anirudh Ghayal <aghayal@codeaurora.org>
Loading
Please register or sign in to comment