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
-  Lines: 9
-  Date:
Thu Feb 10 17:07:26 2000
-  Orig file: 
v2.3.43/linux/drivers/usb/hub.c
-  Orig date: 
Thu Feb 10 17:11:15 2000
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);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)