]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
EHCI: add delay to bus_resume before accessing ports
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 16 Mar 2007 13:34:29 +0000 (09:34 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:23 +0000 (12:49 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hub.c

index bfe5f307cba68b6acfe5c28112bc095159f435bd..2d36a8deb2e61c9389c99d0b50f91825f9250ed6 100644 (file)
@@ -134,6 +134,10 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
        /* restore CMD_RUN, framelist size, and irq threshold */
        writel (ehci->command, &ehci->regs->command);
 
+       /* Some controller/firmware combinations need a delay during which
+        * they set up the port statuses.  See Bugzilla #8190. */
+       mdelay(8);
+
        /* manually resume the ports we suspended during bus_suspend() */
        i = HCS_N_PORTS (ehci->hcs_params);
        while (i--) {