Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15af55c0 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-smbcharger: detect and reject faulty charger



There could be faulty chargers which can lead to frequent AICL
reruns and that can cause fuel gauge ADC to go into bad state.
To avoid that, disable the AICL rerun once a certain limit of AICL
done interrupts are received when the AICL deglitch timer is
configured for short interval. AICL rerun will be enabled back
once the AICL deglitch timer workaround is called.

If the AICL rerun is enabled, charger buck will never enter
suspend when a bad charger is detected by the hardware. Detect
these conditions in software and report it to USB power supply.

CRs-Fixed: 800230
Change-Id: Id79a99b24044e4312b515c8dba652c54cfb47346
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent a37d455c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment