Skip to content

Commit

Permalink
USB: EHCI: add a short delay to the bus_suspend routine
Browse files Browse the repository at this point in the history
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 <stern@rowland.harvard.edu>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Feb 1, 2008
1 parent f8fa757 commit cd930c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/host/ehci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd930c9

Please sign in to comment.