power: qpnp-fg-gen4: Handle vbatt_low false positives
In certain scenarios, when FG is restarted after loading the
profile, vbatt_low interrupt can fire upon which vbatt_low flag
is set to indicate 0% SOC. vbatt_low flag once set should not be
cleared when vbatt_low condition goes away as that can cause
fluctuation in SOC being reported. To handle the false positives
of vbatt_low interrupt, don't set vbatt_low flag if the FG is
restarted as a part of profile loading within 10 seconds.
CRs-Fixed: 2445339
Change-Id: I12202b2fbca344381cac60b0bd0f5cba6c92a363
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment