1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Disable devices that are not present; at a later stage we can then enable

them if the device arrives.

This should solve the problem where devices that have been disabled eg. in
the BIOS show up with nonsense resources and hang the bootstrap process.
This commit is contained in:
Mike Smith 2001-09-15 04:14:31 +00:00
parent aa2b4bc413
commit b519f9d660
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83491

View File

@ -785,6 +785,16 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status)
break;
acpi_set_handle(child, handle);
/*
* Check that the device is present. If it's not present,
* leave it disabled (so that we have a device_t attached to
* the handle, but we don't probe it).
*/
if (!acpi_DeviceIsPresent(child)) {
device_disable(child);
break;
}
/*
* Get the device's resource settings and attach them.
* Note that if the device has _PRS but no _CRS, we need