mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[USBHUB] Add a delay hack for USB boot
CORE-7826
This commit is contained in:
parent
6f389a35db
commit
d14d7e5b8c
1 changed files with 7 additions and 0 deletions
|
@ -1063,6 +1063,13 @@ USBH_FdoQueryBusRelations(IN PUSBHUB_FDO_EXTENSION HubExtension,
|
|||
|
||||
if (!(HubExtension->HubFlags & USBHUB_FDO_FLAG_DO_ENUMERATION))
|
||||
{
|
||||
// FIXME: this delay makes devices discovery during early boot more reliable
|
||||
LARGE_INTEGER Interval;
|
||||
Status = STATUS_SUCCESS;
|
||||
IoInvalidateDeviceRelations(HubExtension->LowerPDO, BusRelations);
|
||||
Interval.QuadPart = -10000LL * 1000; // 1 sec.
|
||||
KeDelayExecutionThread(KernelMode, FALSE, &Interval);
|
||||
|
||||
DPRINT_ENUM("USBH_FdoQueryBusRelations: Skip enumeration\n");
|
||||
goto RelationsWorker;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue