mirror of https://gitee.com/openkylin/linux.git
ACPI: Fix bogus GPE test in acpi_bus_set_run_wake_flags()
When we check if a GPE can be used for runtime signaling, we only search the FADT GPE blocks, which is incorrect, becuase the GPE may be located elsewhere. We really should be using the GPE device information previously returned by _PRW here, so make that happen. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
9e6c3e996e
commit
e8e18c9561
|
@ -764,7 +764,8 @@ static void acpi_bus_set_run_wake_flags(struct acpi_device *device)
|
|||
return;
|
||||
}
|
||||
|
||||
status = acpi_get_gpe_status(NULL, device->wakeup.gpe_number,
|
||||
status = acpi_get_gpe_status(device->wakeup.gpe_device,
|
||||
device->wakeup.gpe_number,
|
||||
&event_status);
|
||||
if (status == AE_OK)
|
||||
device->wakeup.flags.run_wake =
|
||||
|
|
Loading…
Reference in New Issue