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:Xiaozhe Shi <xiaozhes@codeaurora.org> Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment