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

Commit b2a6700a authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

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: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 4c68de8a
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