mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
According to MSDN: "PnP Manager queries a device's BusRelations (child devices) when the device is enumerated".
This change implements this behaviour in reactos (thanks Filip Navara for providing this good idea). Before, querying BusRelations was done only for ACPI/BUS_EXTENDER DeviceType. svn path=/trunk/; revision=19349
This commit is contained in:
@@ -121,6 +121,7 @@ IopInitializeDevice(PDEVICE_NODE DeviceNode,
|
||||
}
|
||||
|
||||
IopDeviceNodeSetFlag(DeviceNode, DNF_ADDED);
|
||||
IopDeviceNodeSetFlag(DeviceNode, DNF_NEED_ENUMERATION_ONLY);
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
@@ -153,12 +154,11 @@ IopStartDevice(
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Fdo->DeviceType == FILE_DEVICE_BUS_EXTENDER ||
|
||||
Fdo->DeviceType == FILE_DEVICE_ACPI)
|
||||
if (IopDeviceNodeHasFlag(DeviceNode, DNF_NEED_ENUMERATION_ONLY))
|
||||
{
|
||||
DPRINT("Bus extender found\n");
|
||||
|
||||
DPRINT("Device needs enumeration, invalidating bus relations\n");
|
||||
Status = IopInvalidateDeviceRelations(DeviceNode, BusRelations);
|
||||
IopDeviceNodeClearFlag(DeviceNode, DNF_NEED_ENUMERATION_ONLY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user