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

Commit e491998d authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: lower AICL deglitch timer during taper charge



During the transition from constant current charging to taper charging,
there is a lot of oscillation whenever the input power supply is current
limited, and the charger buck is operating in 100% duty cycle. This
causes oscillations on the USB input voltage, which in turn causes the
Fuel Gauge VADC to read faulty readings on VBAT and IBAT.

This oscillation is caused by the battery overvoltage triggering on and
off rapidly, which causes drops on USBIN. The voltage collapses are fast
enough that the AICL deglitch filters throw them out, so AICL never
lowers the input current limit.

Fix this issue by lowering the deglitch timer whenever we hit taper
charge. Also, turn on AICL reruns to allow the current to go back up to
the maximum supported after the device is out of the problem region on
the charging curve.

CRs-Fixed: 755084
Change-Id: Ie7790c40ea16a7a68cff555a8f4bcc39baf4f309
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 01ed0a3b
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