Loading
qpnp-smb2: fix reverse boost when input is removed
When any input is removed it is likely that reverse boost can happen.
Detect reverse boost by checking if the switcher-power-ok interrupt
triggers 3 times within 1 second. If detected then suspend all input.
Once VBUS falls the input can be resumed for the next insertion.
Change-Id: I3dbe4fe426111023b60eefd968c426be7d6057b9
Signed-off-by:
Nicholas Troast <ntroast@codeaurora.org>