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 8ee379ef309..53502d1bbf2 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -968,8 +968,8 @@ acpi_bus_extract_wakeup_device_power_package(acpi_handle handle, | |||
968 | static void acpi_bus_set_run_wake_flags(struct acpi_device *device) | 968 | static void acpi_bus_set_run_wake_flags(struct acpi_device *device) |
969 | { | 969 | { |
970 | struct acpi_device_id button_device_ids[] = { | 970 | struct acpi_device_id button_device_ids[] = { |
971 | {"PNP0C0D", 0}, | ||
972 | {"PNP0C0C", 0}, | 971 | {"PNP0C0C", 0}, |
972 | {"PNP0C0D", 0}, | ||
973 | {"PNP0C0E", 0}, | 973 | {"PNP0C0E", 0}, |
974 | {"", 0}, | 974 | {"", 0}, |
975 | }; | 975 | }; |
@@ -981,6 +981,11 @@ static void acpi_bus_set_run_wake_flags(struct acpi_device *device) | |||
981 | /* Power button, Lid switch always enable wakeup */ | 981 | /* Power button, Lid switch always enable wakeup */ |
982 | if (!acpi_match_device_ids(device, button_device_ids)) { | 982 | if (!acpi_match_device_ids(device, button_device_ids)) { |
983 | device->wakeup.flags.run_wake = 1; | 983 | device->wakeup.flags.run_wake = 1; |
984 | if (!acpi_match_device_ids(device, &button_device_ids[1])) { | ||
985 | /* Do not use Lid/sleep button for S5 wakeup */ | ||
986 | if (device->wakeup.sleep_state == ACPI_STATE_S5) | ||
987 | device->wakeup.sleep_state = ACPI_STATE_S4; | ||
988 | } | ||
984 | device_set_wakeup_capable(&device->dev, true); | 989 | device_set_wakeup_capable(&device->dev, true); |
985 | return; | 990 | return; |
986 | } | 991 | } |