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

Commit 87a433e1 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

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: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent fd575eb0
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