diff options
-rw-r--r-- | drivers/usb/dwc2/hcd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 911c3b36ac06..8b264d4aaaeb 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c | |||
@@ -4367,6 +4367,9 @@ static int _dwc2_hcd_suspend(struct usb_hcd *hcd) | |||
4367 | if (!HCD_HW_ACCESSIBLE(hcd)) | 4367 | if (!HCD_HW_ACCESSIBLE(hcd)) |
4368 | goto unlock; | 4368 | goto unlock; |
4369 | 4369 | ||
4370 | if (hsotg->op_state == OTG_STATE_B_PERIPHERAL) | ||
4371 | goto unlock; | ||
4372 | |||
4370 | if (!hsotg->params.hibernation) | 4373 | if (!hsotg->params.hibernation) |
4371 | goto skip_power_saving; | 4374 | goto skip_power_saving; |
4372 | 4375 | ||