power: qpnp-fg-gen4: Fix adjusting recharge SOC after charge termination
Currently, recharge_soc is adjusted based on the monotonic SOC
when the charge termination happens and it is adjusted back to
the original threshold when battery health is good i.e. not in
JEITA. This is needed to help resume charging. However, there is
an issue in the code which simply sets the flag when recharge
SOC is adjusted but not modifying the recharge SOC. Fix it.
Also, allow adjusting recharge SOC only once after a good charge
termination so that recharge SOC won't be modified before
charging resumes or input is removed.
CRs-Fixed: 2390661
Change-Id: Ib79aa25210f96084ddf3f00e6c05a52433381256
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment