]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/usb/core/hub.c
Merge branch 3.13-rc4 into usb-next
[karo-tx-linux.git] / drivers / usb / core / hub.c
index 6a11eff74d3c62f76faf382074019de36bf2b09f..162e94dbed53e31ffafe6fe7db76cb6d16aac2ff 100644 (file)
@@ -4847,8 +4847,9 @@ static void hub_events(void)
                                        hub->ports[i - 1]->child;
 
                                dev_dbg(hub_dev, "warm reset port %d\n", i);
-                               if (!udev || !(portstatus &
-                                               USB_PORT_STAT_CONNECTION)) {
+                               if (!udev ||
+                                   !(portstatus & USB_PORT_STAT_CONNECTION) ||
+                                   udev->state == USB_STATE_NOTATTACHED) {
                                        status = hub_port_reset(hub, i,
                                                        NULL, HUB_BH_RESET_TIME,
                                                        true);