forked from rubenslte/android_kernel_samsung_msm8226
Merge "usb: msm_otg: Fix bug with hvdcp connect and disconnect processing"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
ff327af7bd
@@ -4074,7 +4074,16 @@ msm_otg_ext_chg_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
} else {
|
||||
motg->ext_chg_active = false;
|
||||
complete(&motg->ext_chg_wait);
|
||||
pm_runtime_put(motg->phy.dev);
|
||||
/*
|
||||
* If usb cable is disconnected and then userspace
|
||||
* calls ioctl to unblock low power mode, make sure
|
||||
* otg_sm work for usb disconnect is processed first
|
||||
* followed by decrementing the PM usage counters.
|
||||
*/
|
||||
flush_work(&motg->sm_work);
|
||||
pm_runtime_put_noidle(motg->phy.dev);
|
||||
motg->pm_done = 1;
|
||||
pm_runtime_suspend(motg->phy.dev);
|
||||
}
|
||||
break;
|
||||
case MSM_USB_EXT_CHG_VOLTAGE_INFO:
|
||||
|
||||
Reference in New Issue
Block a user