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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment