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:
Ashay Jaiswal <ashayj@codeaurora.org>
Loading
Please register or sign in to comment