power: qpnp-smbcharger: cancel hvdcp detection work before rescheduling it
With upcoming APSD rerun at initialization time, we may handle an usb
insertion interrupt while the previously scheduled hvdcp detection
delayed work may not have run. This leads to the issue of hvdcp type
not being reported and subsequently QuickCharge 3.0 not being detected,
since the already scheduled detection work will run earlier than 2.5
seconds of the usb insertion interrupt triggering.
Fix this by cancelling the delayed work and rescheduling the hvdcp
detection work queue again.
CRs-Fixed: 917683
Change-Id: I1124608fff9fd57c2e063f044409804cf083a4f2
Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment