]> git.neil.brown.name Git - history.git/commitdiff
USB hub
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 20 Mar 2002 07:03:53 +0000 (23:03 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 20 Mar 2002 07:03:53 +0000 (23:03 -0800)
changed the interval for checking if the device is connected yet or not.
Thanks to Itai Nahshon <nahshon@actcom.co.il> for the information.

drivers/usb/hub.c

index 91bdb634558725188c696c21edcd4656469ad328..f598a3cc98e0e51876b4a9e1a33a62d3e950592c 100644 (file)
@@ -655,11 +655,11 @@ void usb_hub_port_disable(struct usb_device *hub, int port)
  * Not covered by the spec - but easy to deal with.
  *
  * This implementation uses 400ms minimum debounce timeout and checks
- * every 10ms for transient disconnects to restart the delay.
+ * every 100ms for transient disconnects to restart the delay.
  */
 
 #define HUB_DEBOUNCE_TIMEOUT   400
-#define HUB_DEBOUNCE_STEP      10
+#define HUB_DEBOUNCE_STEP      100
 
 /* return: -1 on error, 0 on success, 1 on disconnect.  */
 static int usb_hub_port_debounce(struct usb_device *hub, int port)