Commit b1cf0694 authored by Len Brown's avatar Len Brown

[ACPI] if _STA.functional, set _STA.present (Bjorn Helgaas)

workaround for Big Sur and Bull systems
parent 7ea74153
...@@ -112,6 +112,14 @@ acpi_bus_get_status ( ...@@ -112,6 +112,14 @@ acpi_bus_get_status (
else else
STRUCT_TO_INT(device->status) = 0x0F; STRUCT_TO_INT(device->status) = 0x0F;
if (device->status.functional && !device->status.present) {
printk(KERN_WARNING PREFIX "Device [%s] status [%08x]: "
"functional but not present; setting present\n",
device->pnp.bus_id,
(u32) STRUCT_TO_INT(device->status));
device->status.present = 1;
}
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device [%s] status [%08x]\n", ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device [%s] status [%08x]\n",
device->pnp.bus_id, (u32) STRUCT_TO_INT(device->status))); device->pnp.bus_id, (u32) STRUCT_TO_INT(device->status)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment