mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
usb: dwc2: gadget: ignore pm suspend/resume in L2
Nothing to be done in pm suspend/resume when controller is in L2. Don't disconnect or reset. State is already saved when putting controller in hibernation and will be restored on USB bus resume. Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
4876886fb9
commit
9e779778ad
1 changed files with 6 additions and 0 deletions
|
|
@ -3672,6 +3672,9 @@ int s3c_hsotg_suspend(struct dwc2_hsotg *hsotg)
|
|||
unsigned long flags;
|
||||
int ret = 0;
|
||||
|
||||
if (hsotg->lx_state != DWC2_L0)
|
||||
return ret;
|
||||
|
||||
mutex_lock(&hsotg->init_mutex);
|
||||
|
||||
if (hsotg->driver) {
|
||||
|
|
@ -3712,6 +3715,9 @@ int s3c_hsotg_resume(struct dwc2_hsotg *hsotg)
|
|||
unsigned long flags;
|
||||
int ret = 0;
|
||||
|
||||
if (hsotg->lx_state == DWC2_L2)
|
||||
return ret;
|
||||
|
||||
mutex_lock(&hsotg->init_mutex);
|
||||
|
||||
if (hsotg->driver) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue