diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-10 12:58:38 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-15 14:27:38 +0100 |
| commit | 57c31e6d620f132dcf610b2c52b4cdbd203c6f4a (patch) | |
| tree | c8a97bc0dcdde43b01b4fbe2e9dec105c42add35 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 88fad6ce090b395af4c654594a54589a386bf24b (diff) | |
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: 52d864019636 ("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.wysocki
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
