summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/hcd_intr.c
diff options
context:
space:
mode:
authorGregory Herrero2015-04-29 22:09:14 +0200
committerFelipe Balbi2015-04-29 22:19:50 +0200
commita7714c1cb11dc3bb97a76d2bb0560415d155b1d5 (patch)
tree0d4f7bfcf388e6eabbec0a91b5933603862da741 /drivers/usb/dwc2/hcd_intr.c
parentusb: dwc2: host: add bus_suspend/bus_resume callback (diff)
downloadkernel-qcow2-linux-a7714c1cb11dc3bb97a76d2bb0560415d155b1d5.tar.gz
kernel-qcow2-linux-a7714c1cb11dc3bb97a76d2bb0560415d155b1d5.tar.xz
kernel-qcow2-linux-a7714c1cb11dc3bb97a76d2bb0560415d155b1d5.zip
usb: dwc2: host: resume root hub on port connect
Once hub is runtime suspended, dwc2 must resume it on port connect event. Else, roothub will stay in suspended state and will not resume transfers. Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/hcd_intr.c')
-rw-r--r--drivers/usb/dwc2/hcd_intr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/hcd_intr.c b/drivers/usb/dwc2/hcd_intr.c
index 551ba878b003..6927bba86245 100644
--- a/drivers/usb/dwc2/hcd_intr.c
+++ b/drivers/usb/dwc2/hcd_intr.c
@@ -350,6 +350,9 @@ static void dwc2_port_intr(struct dwc2_hsotg *hsotg)
dev_vdbg(hsotg->dev,
"--Port Interrupt HPRT0=0x%08x Port Connect Detected--\n",
hprt0);
+ if (hsotg->lx_state != DWC2_L0)
+ usb_hcd_resume_root_hub(hsotg->priv);
+
hsotg->flags.b.port_connect_status_change = 1;
hsotg->flags.b.port_connect_status = 1;
hprt0_modify |= HPRT0_CONNDET;