Browse Source

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 <Dinh.Nguyen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Dinh Nguyen 15 năm trước cách đây
mục cha
commit
6307e09612
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/usb/host/ehci-hub.c

+ 1 - 1
drivers/usb/host/ehci-hub.c

@@ -801,7 +801,7 @@ static int ehci_hub_control (
 			 * this bit; seems too long to spin routinely...
 			 * this bit; seems too long to spin routinely...
 			 */
 			 */
 			retval = handshake(ehci, status_reg,
 			retval = handshake(ehci, status_reg,
-					PORT_RESET, 0, 750);
+					PORT_RESET, 0, 1000);
 			if (retval != 0) {
 			if (retval != 0) {
 				ehci_err (ehci, "port %d reset error %d\n",
 				ehci_err (ehci, "port %d reset error %d\n",
 					wIndex + 1, retval);
 					wIndex + 1, retval);