diff options
| -rw-r--r-- | drivers/usb/dwc2/hcd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index edaf0b6af4f0..bae08a7d7abd 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c | |||
| @@ -5435,7 +5435,7 @@ int dwc2_host_enter_hibernation(struct dwc2_hsotg *hsotg) | |||
| 5435 | dwc2_writel(hprt0, hsotg->regs + HPRT0); | 5435 | dwc2_writel(hprt0, hsotg->regs + HPRT0); |
| 5436 | 5436 | ||
| 5437 | /* Wait for the HPRT0.PrtSusp register field to be set */ | 5437 | /* Wait for the HPRT0.PrtSusp register field to be set */ |
| 5438 | if (dwc2_hsotg_wait_bit_set(hsotg, HPRT0, HPRT0_SUSP, 300)) | 5438 | if (dwc2_hsotg_wait_bit_set(hsotg, HPRT0, HPRT0_SUSP, 3000)) |
| 5439 | dev_warn(hsotg->dev, "Suspend wasn't generated\n"); | 5439 | dev_warn(hsotg->dev, "Suspend wasn't generated\n"); |
| 5440 | 5440 | ||
| 5441 | /* | 5441 | /* |
| @@ -5616,6 +5616,8 @@ int dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, | |||
| 5616 | return ret; | 5616 | return ret; |
| 5617 | } | 5617 | } |
| 5618 | 5618 | ||
| 5619 | dwc2_hcd_rem_wakeup(hsotg); | ||
| 5620 | |||
| 5619 | hsotg->hibernated = 0; | 5621 | hsotg->hibernated = 0; |
| 5620 | hsotg->bus_suspended = 0; | 5622 | hsotg->bus_suspended = 0; |
| 5621 | hsotg->lx_state = DWC2_L0; | 5623 | hsotg->lx_state = DWC2_L0; |
