Commit 57c31e6
committed
ACPI: scan: Use acpi_setup_gpe_for_wake() for buttons
After starting to use platform devices for representing buttons
enumerated via ACPI, acpi_mark_gpe_for_wake() is insufficient for
preparing their GPEs to wake up the system from sleep because it
does not change the "dispatch type" of the given GPE to
ACPI_GPE_DISPATCH_NOTIFY. Subsequently, this causes acpi_enable_gpe()
in __acpi_device_wakeup_enable() to fail and system suspend transitions
to be aborted.
Address this by updating acpi_wakeup_gpe_init() to use
acpi_setup_gpe_for_wake() for buttons like for any other devices.
This allows acpi_setup_gpe_for_wake() to be simplified further because
buttons are not a special case in it any more, so do that as well.
Fixes: 52d8640 ("ACPI: button: Convert the driver to a platform one")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Xi Pardee <xi.pardee@linux.intel.com>
Link: https://patch.msgid.link/2259694.irdbgypaU6@rafael.j.wysocki1 parent 88fad6c commit 57c31e6
1 file changed
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | 1002 | | |
1006 | 1003 | | |
1007 | 1004 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
| 1005 | + | |
| 1006 | + | |
1011 | 1007 | | |
1012 | 1008 | | |
1013 | 1009 | | |
| |||
1016 | 1012 | | |
1017 | 1013 | | |
1018 | 1014 | | |
1019 | | - | |
1020 | 1015 | | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
| 1016 | + | |
| 1017 | + | |
1028 | 1018 | | |
1029 | 1019 | | |
1030 | 1020 | | |
| |||
0 commit comments