From: Dinh Nguyen Date: Tue, 13 Apr 2010 16:13:15 +0000 (-0500) Subject: usb: Increase timeout value for device reset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6307e0961205c50a8a9b6e8e3e4dfd178a944ba9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: Increase timeout value for device reset It seems that for USB IP on Freescale MX5x processors, it needs >750 usec for the reset to complete. This change should not hurt any other EHCI hardware. Signed-off-by: Dinh Nguyen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index 19372673bf09..c7178bcde67a 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c @@ -801,7 +801,7 @@ static int ehci_hub_control ( * this bit; seems too long to spin routinely... */ retval = handshake(ehci, status_reg, - PORT_RESET, 0, 750); + PORT_RESET, 0, 1000); if (retval != 0) { ehci_err (ehci, "port %d reset error %d\n", wIndex + 1, retval);