Add a hack to get around PCI link devices that report "present" but not

"functional" (i.e., if they are disabled).  We should probe them anyway
since we may enable them later.

Tested by:	thompsa
MFC after:	3 days
This commit is contained in:
Nate Lawson 2005-10-23 00:28:39 +00:00
parent 71a5cd7f7d
commit 893f750a5c

View file

@ -1571,8 +1571,13 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status)
* 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).
*
* XXX PCI link devices sometimes report "present" but not
* "functional" (i.e. if disabled). Go ahead and probe them
* anyway since we may enable them later.
*/
if (type == ACPI_TYPE_DEVICE && !acpi_DeviceIsPresent(child)) {
if (type == ACPI_TYPE_DEVICE && !acpi_DeviceIsPresent(child) &&
!acpi_MatchHid(handle, "PNP0C0F")) {
device_disable(child);
break;
}