Commit 0d019273 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB hub

changed the interval for checking if the device is connected yet or not.
Thanks to Itai Nahshon <nahshon@actcom.co.il> for the information.
parent c32692c6
...@@ -655,11 +655,11 @@ void usb_hub_port_disable(struct usb_device *hub, int port) ...@@ -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. * Not covered by the spec - but easy to deal with.
* *
* This implementation uses 400ms minimum debounce timeout and checks * 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_TIMEOUT 400
#define HUB_DEBOUNCE_STEP 10 #define HUB_DEBOUNCE_STEP 100
/* return: -1 on error, 0 on success, 1 on disconnect. */ /* return: -1 on error, 0 on success, 1 on disconnect. */
static int usb_hub_port_debounce(struct usb_device *hub, int port) static int usb_hub_port_debounce(struct usb_device *hub, int port)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment