diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-03-15 15:54:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 16:28:35 -0400 |
commit | e198a31489146bb723fef179e5d1d18c8225f246 (patch) | |
tree | 92e84cc04863e49e3ff96feef56c2c6eb0adca23 /drivers/usb/host/ehci-hub.c | |
parent | eaafbc3a8adab16babe2c20e54ad3ba40d1fbbc9 (diff) |
EHCI: add delay to bus_resume before accessing ports
This patch (as870) adds a delay to ehci-hcd's bus_resume routine.
Apparently there are controllers and/or BIOSes out there which need
such a delay to get the ports back into their correct state. This
fixes Bugzilla #8190.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-hub.c')
-rw-r--r-- | drivers/usb/host/ehci-hub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index 1813b7cac294..f4d301bc83b9 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c | |||
@@ -136,6 +136,10 @@ static int ehci_bus_resume (struct usb_hcd *hcd) | |||
136 | /* restore CMD_RUN, framelist size, and irq threshold */ | 136 | /* restore CMD_RUN, framelist size, and irq threshold */ |
137 | ehci_writel(ehci, ehci->command, &ehci->regs->command); | 137 | ehci_writel(ehci, ehci->command, &ehci->regs->command); |
138 | 138 | ||
139 | /* Some controller/firmware combinations need a delay during which | ||
140 | * they set up the port statuses. See Bugzilla #8190. */ | ||
141 | mdelay(8); | ||
142 | |||
139 | /* manually resume the ports we suspended during bus_suspend() */ | 143 | /* manually resume the ports we suspended during bus_suspend() */ |
140 | i = HCS_N_PORTS (ehci->hcs_params); | 144 | i = HCS_N_PORTS (ehci->hcs_params); |
141 | while (i--) { | 145 | while (i--) { |