diff options
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index d0b38ab47ab5..bd523bfbaad1 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -917,8 +917,8 @@ acpi_bus_extract_wakeup_device_power_package(acpi_handle handle, | |||
917 | static void acpi_bus_set_run_wake_flags(struct acpi_device *device) | 917 | static void acpi_bus_set_run_wake_flags(struct acpi_device *device) |
918 | { | 918 | { |
919 | struct acpi_device_id button_device_ids[] = { | 919 | struct acpi_device_id button_device_ids[] = { |
920 | {"PNP0C0D", 0}, | ||
921 | {"PNP0C0C", 0}, | 920 | {"PNP0C0C", 0}, |
921 | {"PNP0C0D", 0}, | ||
922 | {"PNP0C0E", 0}, | 922 | {"PNP0C0E", 0}, |
923 | {"", 0}, | 923 | {"", 0}, |
924 | }; | 924 | }; |
@@ -930,6 +930,11 @@ static void acpi_bus_set_run_wake_flags(struct acpi_device *device) | |||
930 | /* Power button, Lid switch always enable wakeup */ | 930 | /* Power button, Lid switch always enable wakeup */ |
931 | if (!acpi_match_device_ids(device, button_device_ids)) { | 931 | if (!acpi_match_device_ids(device, button_device_ids)) { |
932 | device->wakeup.flags.run_wake = 1; | 932 | device->wakeup.flags.run_wake = 1; |
933 | if (!acpi_match_device_ids(device, &button_device_ids[1])) { | ||
934 | /* Do not use Lid/sleep button for S5 wakeup */ | ||
935 | if (device->wakeup.sleep_state == ACPI_STATE_S5) | ||
936 | device->wakeup.sleep_state = ACPI_STATE_S4; | ||
937 | } | ||
933 | device_set_wakeup_capable(&device->dev, true); | 938 | device_set_wakeup_capable(&device->dev, true); |
934 | return; | 939 | return; |
935 | } | 940 | } |