mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[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) svn path=/trunk/; revision=55852
This commit is contained in:
parent
c14c8d7ef4
commit
266e31d825
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue