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

Skip to content
Commit a919c4f0 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Stephen Boyd
Browse files

power: pm8921-charger: fix race in unplug check worker



When the usb voltage collapses, the driver waits for 50ms and checks
whether the usb voltage has restored. If it has, the driver treats
it as collapse and resets the usb current and the target
current. It assumes that unplug check worker will run and do its
aicl duties to step up the usb current.

However if the unplug check worker runs right at the time when usb
has collapsed it will exit and wont schedule anymore.

To fix this check if the unplug worker is pending, if not, reschedule
it.

Change-Id: I1bb658339e5a6f0adb07fda3ee0bc6c03670cc09
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 3828b781
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