Author: cgutman
Date: Sat Feb 25 05:46:19 2012
New Revision: 55852
URL:
http://svn.reactos.org/svn/reactos?rev=55852&view=rev
Log:
[USBHUB]
- Fix reset event handling in cases where reset does not end up in a new device created
- My MacBook Pro completes USB initialization free of hangs now (usbstor disabled)
Modified:
trunk/reactos/drivers/usb/usbhub/fdo.c
Modified: trunk/reactos/drivers/usb/usbhub/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbhub/fdo.c?r…
==============================================================================
--- trunk/reactos/drivers/usb/usbhub/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbhub/fdo.c [iso-8859-1] Sat Feb 25 05:46:19 2012
@@ -330,6 +330,7 @@
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to reset port %d\n", PortId);
+ SignalResetComplete = TRUE;
continue;
}
}
@@ -348,6 +349,11 @@
}
else if (PortStatus.Change & USB_PORT_STATUS_RESET)
{
+ //
+ // Request event signalling later
+ //
+ SignalResetComplete = TRUE;
+
//
// Clear Reset
//
@@ -411,11 +417,6 @@
// This is a new device
//
Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL,
PortStatus.Status);
-
- //
- // Request event signalling later
- //
- SignalResetComplete = TRUE;
}
}