Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cd930c931417295ac6b4d9fea62accc67192ac34
Commit:     cd930c931417295ac6b4d9fea62accc67192ac34
Parent:     f8fa7571a928d6d0e1b7444b0ea69ec7dc7db3b6
Author:     Alan Stern <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 10 11:14:53 2008 -0500
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Feb 1 14:35:03 2008 -0800

    USB: EHCI: add a short delay to the bus_suspend routine
    
    This patch (as1031) adds a short delay to the bus-suspend routine in
    ehci-hcd.  Without it some devices disconnect when they should
    suspend.
    
    Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
    Acked-by: David Brownell <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 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 7919a41..ccd88ae 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -172,6 +172,10 @@ static int ehci_bus_suspend (struct usb_hcd *hcd)
                }
        }
 
+       /* Apparently some devices need a >= 1-uframe delay here */
+       if (ehci->bus_suspended)
+               udelay(150);
+
        /* turn off now-idle HC */
        ehci_halt (ehci);
        hcd->state = HC_STATE_SUSPENDED;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to