summaryrefslogtreecommitdiff
path: root/drivers/base/firmware_class.c
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-02-06 16:33:12 -0800
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-02-10 16:57:58 -0800
commit6f4dec2b0c316b241d98c15211512d96fd977b5d (patch)
tree6194cec0aa0a0c443e97b8b4b4fb4a6c0a3a1c62 /drivers/base/firmware_class.c
parent2b9d6a362f9ae5f7e2228e3c1df9b9cf56417b7c (diff)
qcom: qpnp-smb2: Reset switcher_power_ok irq count when USBIN_UV fires
Currently when 3 switcher_power_ok interrupts are seen within a second, the driver thinks that the switcher is reverse boosting and suspends USB input path. However, switcher_power_ok could happen 3 times within a second while AICL is run from a charger collapse, a valid usecase which ends up in an USB suspended state. Note that AICL run caused switcher_power_ok is accompanied by an USBIN_UV interrupt. Use that to distinguish reverse boost Vs AICL runs. In particular, reset the switcher_power_ok interrupt count updated by storm_watch when an USBIN_UV interrupt is seen. Change-Id: I6817c66319f9af03ac28324a8d863876fdadafb3 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'drivers/base/firmware_class.c')
0 files changed, 0 insertions, 0 deletions