From bbd84c41713e931ab461f713948685ae28c942e9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 26 Jan 2012 00:02:03 +0000 Subject: [PATCH] [USBHUB_NEW] - 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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/usbhub_new/fdo.c b/drivers/usb/usbhub_new/fdo.c index 14bea1a64d3..a2ee1b3a8ec 100644 --- a/drivers/usb/usbhub_new/fdo.c +++ b/drivers/usb/usbhub_new/fdo.c @@ -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); } } -- 2.17.1