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

Skip to content
Commit f394d716 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Gerrit - the friendly Code Review server
Browse files

power: smb135x-charger: reset over current count



Currently, the driver increments the over current counter on every OTG
over current interrupt and disables OTG regulator when it reaches the
count of three.

Add code to reset the counter if over current interrupt isn't seen for
100 ms. This way the OTG regulator will be disabled only if three over
current interrupts are seen within 100mS indicating a non-compliant
device.

CRs-Fixed: 794748
Change-Id: Ib17b5a1f90c9d84901961b0e8196cc9bfb5dcd55
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent c001c55f
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