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

Commit b407c5fd authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: fix parallel charging with HVDCP



Booting with an HVDCP will make the very first attempt at doing parallel
charging always fail due to the HVDCP 3.0 APSD rerun algorithm. This is
due to the parallel charging last_disabled timer in the driver
preventing reenabling of parallel charging 30 seconds after it has been
disabled. Historically this had been a problem with bad AICL values
after immediately rerunning AICL when parallel charging was disabled.

However, with the rearchitected parallel charging algorithm, this is no
longer a big issue. Lower the last_disabled time threshold from 30
seconds to 1 second in order to catch more cases where parallel charging
can be enabled.

Additionally, reset the enabled once flag for parallel charging after
HVDCP pulsing is done and normal charging is reenabled, so that parallel
charging can be immediately reenabled afterwards.

Change-Id: I002e7dbbba0cbefd4fe399759a9a504ba803f539
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 5c9cec22
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