diff options
author | Gregory Herrero <gregory.herrero@intel.com> | 2015-01-30 03:09:26 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-30 11:29:38 -0500 |
commit | b46146d59fdac6a6f559d5e6618f128abf0c2912 (patch) | |
tree | d7d82549cb4ab747e8c433179a7e7a3a7a9f6ef8 | |
parent | fbba7db3990cb707ff91cd6507d53a0a730afe97 (diff) |
usb: dwc2: host: resume root hub on remote wakeup
When a remote wakeup happens during bus_suspend, hcd needs to resume
its root hub.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/dwc2/hcd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index c3e66f0be02c..4a9bcdd5cb23 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c | |||
@@ -316,10 +316,12 @@ void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg) | |||
316 | */ | 316 | */ |
317 | static void dwc2_hcd_rem_wakeup(struct dwc2_hsotg *hsotg) | 317 | static void dwc2_hcd_rem_wakeup(struct dwc2_hsotg *hsotg) |
318 | { | 318 | { |
319 | if (hsotg->lx_state == DWC2_L2) | 319 | if (hsotg->lx_state == DWC2_L2) { |
320 | hsotg->flags.b.port_suspend_change = 1; | 320 | hsotg->flags.b.port_suspend_change = 1; |
321 | else | 321 | usb_hcd_resume_root_hub(hsotg->priv); |
322 | } else { | ||
322 | hsotg->flags.b.port_l1_change = 1; | 323 | hsotg->flags.b.port_l1_change = 1; |
324 | } | ||
323 | } | 325 | } |
324 | 326 | ||
325 | /** | 327 | /** |