mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
power: pm8921-charger: enable unplug_check for PC USB
For some platforms disabling the input voltage regulation is not sufficent to prevent unplug events from going unnoticed. Fix this by making sure the unplug_check_worker is also running when a PC USB connection with a current limit of 500 mA is set. Signed-off-by: David Keitel <dkeitel@codeaurora.org> Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
This commit is contained in:
parent
7ef4e8f7db
commit
067e93a522
1 changed files with 0 additions and 5 deletions
|
@ -2728,11 +2728,6 @@ static void unplug_check_worker(struct work_struct *work)
|
|||
pr_info("usb_now=%d, usb_target = %d\n",
|
||||
usb_ma, 500);
|
||||
goto check_again_later;
|
||||
} else if (usb_ma == 500) {
|
||||
pr_info("Stopping Unplug Check Worker"
|
||||
" USB == 500mA\n");
|
||||
disable_input_voltage_regulation(chip);
|
||||
return;
|
||||
}
|
||||
|
||||
if (usb_ma <= 100) {
|
||||
|
|
Loading…
Reference in a new issue