- 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)

svn path=/trunk/; revision=55852
This commit is contained in:
Cameron Gutman 2012-02-25 05:46:19 +00:00
parent c14c8d7ef4
commit 266e31d825

View file

@ -330,6 +330,7 @@ DeviceStatusChangeThread(
if (!NT_SUCCESS(Status))
{
DPRINT1("Failed to reset port %d\n", PortId);
SignalResetComplete = TRUE;
continue;
}
}
@ -348,6 +349,11 @@ DeviceStatusChangeThread(
}
else if (PortStatus.Change & USB_PORT_STATUS_RESET)
{
//
// Request event signalling later
//
SignalResetComplete = TRUE;
//
// Clear Reset
//
@ -411,11 +417,6 @@ DeviceStatusChangeThread(
// This is a new device
//
Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL, PortStatus.Status);
//
// Request event signalling later
//
SignalResetComplete = TRUE;
}
}