ChangeSet 1.1595.7.35, 2003/07/31 22:52:18-07:00, [EMAIL PROTECTED]

[PATCH] USB: usb root hubs need longer timeout

Root hubs should use 50 msec timeouts, not 10 msec.  This will
if nothing else eliminate some messages when using EHCI, which
insists on the whole timeout!


 drivers/usb/core/hub.c |    7 +++++++
 1 files changed, 7 insertions(+)


diff -Nru a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
--- a/drivers/usb/core/hub.c    Fri Aug  1 10:53:43 2003
+++ b/drivers/usb/core/hub.c    Fri Aug  1 10:53:43 2003
@@ -708,6 +708,7 @@
 
 #define HUB_RESET_TRIES                5
 #define HUB_PROBE_TRIES                2
+#define HUB_ROOT_RESET_TIME    50      /* times are in msec */
 #define HUB_SHORT_RESET_TIME   10
 #define HUB_LONG_RESET_TIME    200
 #define HUB_RESET_TIMEOUT      500
@@ -902,6 +903,12 @@
                hub_port_disable(hub, port);
                return;
        }
+
+       /* root hub ports have a slightly longer reset period
+        * (from USB 2.0 spec, section 7.1.7.5)
+        */
+       if (!hub->parent)
+               delay = HUB_ROOT_RESET_TIME;
 
        /* Some low speed devices have problems with the quick delay, so */
        /*  be a bit pessimistic with those devices. RHbug #23670 */



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to