power: qpnp-smbcharger: only rerun aicl when a high ICL is requested
Currently, the charger driver will attempt to rerun AICL every single
time the input current limit is changed. This can cause current spikes
when a new USB is inserted because AICL is turned off for 50ms while the
rerun is taking place.
Fix this by checking whether the input current limit requested is
actually higher than the current AICL level, before doing an AICL rerun.
CRs-Fixed: 800319
Change-Id: I549856dea3f7a8da011912106ecfc9e10ed2b8db
Signed-off-by:
Xiaozhe Shi <xiaozhes@codeaurora.org>
Loading
Please register or sign in to comment