From 893f750a5c9d079860314756b22bd7ecf2b04cc2 Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Sun, 23 Oct 2005 00:28:39 +0000 Subject: [PATCH] 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 --- sys/dev/acpica/acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 993633ae68b..efab5462395 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -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; }