aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorRuslan Bilovol <ruslan.bilovol@ti.com>2012-08-28 16:07:11 +0300
committerRuslan Bilovol <ruslan.bilovol@ti.com>2012-09-13 12:47:22 +0300
commit8a351959a92544cb7d47d66c26ca5cbb588b3791 (patch)
tree74af6f9f68f83e14b66cc4e192559afe7e3c0e37 /drivers/usb/host
parent58cc7f222456c9a2ef728c9c869a7a9bca9da8eb (diff)
downloadkernel_samsung_espresso10-8a351959a92544cb7d47d66c26ca5cbb588b3791.zip
kernel_samsung_espresso10-8a351959a92544cb7d47d66c26ca5cbb588b3791.tar.gz
kernel_samsung_espresso10-8a351959a92544cb7d47d66c26ca5cbb588b3791.tar.bz2
USB: OHCI: do not poll root hub status if HC is not running
If the OHCI root hub is suspended the clocks may be not provided to HW and we get errors on OHCI registers access. So do not poll it in such cases (like is done for EHCI) Change-Id: Ic81833a87c479822fe3c7f23792ee7ac7154e248 Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ohci-hub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
index 2f00040..2f89073 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -490,6 +490,9 @@ ohci_hub_status_data (struct usb_hcd *hcd, char *buf)
int rhsc_status;
unsigned long flags;
+ if (!HC_IS_RUNNING(hcd->state))
+ return 0;
+
spin_lock_irqsave (&ohci->lock, flags);
if (!HCD_HW_ACCESSIBLE(hcd))
goto done;