mbox series

[v1,0/3] ACPI: EC: Avoid evaluating _REG for non-functional operation regions

Message ID 22385894.EfDdHjke4D@rjwysocki.net (mailing list archive)
Headers show
Series ACPI: EC: Avoid evaluating _REG for non-functional operation regions | expand

Message

Rafael J. Wysocki Aug. 12, 2024, 1:06 p.m. UTC
Hi Everyone,

The purpose of this series is to address issues reported here:

https://lore.kernel.org/linux-acpi/1f76b7e2-1928-4598-8037-28a1785c2d13@redhat.com/

and related to evaluating _REG for EC operation regions that are not
expected to be used (for example, because they reside in the scopes of
ACPI device objects whose _STA returns 0).

The first patch reverts commit 0e6b6dedf168 ("Revert "ACPI: EC: Evaluate orphan
_REG under EC device") that will not be necessary after making the changes in
the last patch.  The second patch modifies acpi_execute_reg_methods() to take
an additional "depth" argument that will be needed doing forward.

The last patch moves the _REG evaluation for EC operation regions beyond the
EC device scope to acpi_bus_attach() so it is only evaluated if the device
object holding the EC operation region is present.

Thanks!