Commit 3aaeadd6 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB Hub driver: Add reset recovery-time delay

This patch is clearly needed for us to be in compliance with the USB spec.
It adds the mandated recovery-time delay following a port reset.
Regardless of anything else we do to alter the device initialization
sequence, this is necessary.
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e5129582
...@@ -1382,6 +1382,9 @@ static int hub_port_reset(struct usb_hub *hub, int port1, ...@@ -1382,6 +1382,9 @@ static int hub_port_reset(struct usb_hub *hub, int port1,
/* return on disconnect or reset */ /* return on disconnect or reset */
switch (status) { switch (status) {
case 0: case 0:
/* TRSTRCY = 10 ms */
msleep(10);
/* FALL THROUGH */
case -ENOTCONN: case -ENOTCONN:
case -ENODEV: case -ENODEV:
clear_port_feature(hub->hdev, clear_port_feature(hub->hdev,
......
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