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

Skip to content
Commit e0b3c47c authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: smb5: fix USBIN-UV irq storm



With weak adapter or high resistance cable there is a possibility
of USBIN-UV irq storm when battery volatge is close to AICL threshold.
Fix this by doing the following on seeing a IRQ storm:
1. If AICL configured threshold is lesser than the max AICL threshold,
   increase it by 200mV and restart AICL.
2. If AICL configured threshold is equal to max threshold, force ICL to
   100mA and restart AICL.

The AICL configuration and ICL is set back to the default value on
charger removal.

Change-Id: I4188690574e20ae9483b904eec7ff7bce813fd25
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent b50706d7
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