mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
71a5cd7f7d
commit
893f750a5c
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue