patch-2.3.44 linux/drivers/usb/hub.c

Next file: linux/drivers/usb/inode.c
Previous file: linux/drivers/usb/hid.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.43/linux/drivers/usb/hub.c linux/drivers/usb/hub.c
@@ -453,7 +453,7 @@
 				// be shutdown by the hub, this hack enables them again.
 				// Works at least with mouse driver. 
 				if (!(portstatus & USB_PORT_STAT_ENABLE) && 
-				    (portstatus & USB_PORT_STAT_CONNECTION)) {
+				    (portstatus & USB_PORT_STAT_CONNECTION) && (dev->children[i])) {
 					err("already running port %i disabled by hub (EMI?), re-enabling...",
 						i + 1);
 					usb_hub_port_connect_change(dev, i);

TCL-scripts by Sam Shen (who was at: