mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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]>
This commit is contained in:
parent
f8fa7571a9
commit
cd930c9314
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue