diff options
-rw-r--r-- | drivers/acpi/scan.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index f6f52c1a2aba..5ce14aee5e3f 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -744,6 +744,16 @@ static int acpi_bus_get_wakeup_device_flags(struct acpi_device *device) | |||
744 | if (!acpi_match_device_ids(device, button_device_ids)) | 744 | if (!acpi_match_device_ids(device, button_device_ids)) |
745 | device->wakeup.flags.run_wake = 1; | 745 | device->wakeup.flags.run_wake = 1; |
746 | 746 | ||
747 | /* | ||
748 | * Don't set Power button GPE as run_wake | ||
749 | * if Fixed Power button is used | ||
750 | */ | ||
751 | if (!strcmp(device->pnp.hardware_id, "PNP0C0C") && | ||
752 | !(acpi_gbl_FADT.flags & ACPI_FADT_POWER_BUTTON)) { | ||
753 | device->wakeup.flags.run_wake = 0; | ||
754 | device->wakeup.flags.valid = 0; | ||
755 | } | ||
756 | |||
747 | end: | 757 | end: |
748 | if (ACPI_FAILURE(status)) | 758 | if (ACPI_FAILURE(status)) |
749 | device->flags.wake_capable = 0; | 759 | device->flags.wake_capable = 0; |