mbox series

[RFT,v1,0/4] ACPI: Install notify or event handlers in ACPI button drivers

Message ID 1847933.atdPhlSkOF@kreacher
Headers show
Series ACPI: Install notify or event handlers in ACPI button drivers | expand

Message

Rafael J. Wysocki June 4, 2023, 3:17 p.m. UTC
Hi Folks,

This series reworks the two ACPI button drivers to install notify or fixed
event handlers (depending on the device type) by themselves, so the core
code need not take the "fixed event handler for a button driver" case in
the general driver notify handler installer.

As a bonus, it separates the notify handler in the "generic" button driver
into a lid notify handler and a proper button notify handler.

It modifies also the core to drop the "fixed event handler for a button driver"
case from there (last patch).

It works for me, but I would appreciate as much testing of this as possible
especially on old hardware.

Obviously, it replaces

https://lore.kernel.org/linux-acpi/4500594.LvFx2qVVIh@kreacher/T/#m064d4130b57cbcb0ece1bb415fae1465ebc20f42

and its followers to some extent, but I think that it's better to deal with the
special case first and then take care of the rest.

Thanks!