Message ID | 20250404145034.2608574-1-superm1@kernel.org |
---|---|
State | New |
Headers | show |
Series | [v2] ACPI: button: Only send `KEY_POWER` for `ACPI_BUTTON_NOTIFY_STATUS` | expand |
On Mon, Apr 7, 2025 at 4:13 AM Ian Laurie <nixuser@mail.com> wrote: > > Downloaded the build Justin did on Koji, looks good after 24 hours, no > bugus events. > > Tested-by: Ian Laurie <nixuser@mail.com> Applied as 6.15-rc material, thanks!
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 90b09840536dd..0a70260401882 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c @@ -458,7 +458,7 @@ static void acpi_button_notify(acpi_handle handle, u32 event, void *data) acpi_pm_wakeup_event(&device->dev); button = acpi_driver_data(device); - if (button->suspended) + if (button->suspended || event == ACPI_BUTTON_NOTIFY_WAKE) return; input = button->input;