We found when we plug in/out usb3.0 device for stress testing, once usb_get_device_descriptor fail in hub_port_init, we will call hub_port_disable. Then usb3.0 device may not recover successfully with only hot reset like below function retval = hub_port_reset(hub, port1, udev, delay, false); For covering this error handling, we add warm reset if getting device descriptor fail on usb3.0 devices. Signed-off-by: che-chun Kuo <vichy.kuo@xxxxxxxxx> --- drivers/usb/core/hub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 090469e..0c3ca34 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -4316,6 +4316,9 @@ fail: if (retval) { hub_port_disable(hub, port1, 0); update_devnum(udev, devnum); /* for disconnect processing */ + if (udev->speed == USB_SPEED_SUPER) + hub_port_reset(hub, port1, udev, + HUB_BH_RESET_TIME, true); } mutex_unlock(&usb_address0_mutex); return retval; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html