[USBHUB_NEW]
authorCameron Gutman <aicommander@gmail.com>
Thu, 26 Jan 2012 00:02:03 +0000 (00:02 +0000)
committerCameron Gutman <aicommander@gmail.com>
Thu, 26 Jan 2012 00:02:03 +0000 (00:02 +0000)
- Remove the hacky way of determining if a device connect occurred (prone to all sorts of race conditions) and just always create a device since the only reason we reset right now is for a device connect

svn path=/branches/usb-bringup-trunk/; revision=55186

drivers/usb/usbhub_new/fdo.c

index 14bea1a..a2ee1b3 100644 (file)
@@ -402,13 +402,9 @@ DeviceStatusChangeThread(
             }
 
             //
             }
 
             //
-            // Create the device object only if the port manipulation was started by a device connect
+            // This is a new device
             //
             //
-            if (HubDeviceExtension->PortStatusChange[PortId-1].Status)
-            {
-                HubDeviceExtension->PortStatusChange[PortId-1].Status = 0;
-                Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL);
-            }
+            Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL);
         }
     }
 
         }
     }