power: qpnp-fg-gen3: disable parallel charging during battery removal
During battery hotswap, parallel charging is disabled and enabled
by charger driver when battery is removed and inserted. However,
this changes ESR FCC configuration from SW control to HW control
during battery removal. ESR FCC configuration stays in HW control
before the parallel charging is enabled again and notified to FG
driver.
During this period, when an ESR pulse is triggered right after
the battery insertion, FG HW can request for a decrement in FCC
but charger can end up incrementing FCC due to not accounting the
distribution of FCC via the parallel charger. To fix this issue,
vote to disable parallel charging upon battery removal and enable
it 5 seconds after battery insertion.
CRs-Fixed: 2131292
Change-Id: I0cf09033fb3591508089e472e8f1813cf1ab3a8b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2 files changed