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

Skip to content
Commit 6397e8df authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Guru Das Srinagesh
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 voltage 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.

While at it, add support to configure torch in buck or boost mode for
its proper operation based on ICL.

Change-Id: I4188690574e20ae9483b904eec7ff7bce813fd25
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 1fd6d18c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment