Skip to content

ACPI: EC: Avoid evaluating _REG for non-functional operation regions

Rafael J. Wysocki linux-acpi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Revert "ACPI: EC: Evaluate orphan _REG under EC device"drivers/acpi/acpica/acevents.h drivers/acpi/acpica/evregion.c drivers/acpi/acpica/evxfregn.c +2 more+5 -660 replies
2/3ACPICA: Add a depth argument to acpi_execute_reg_methods()drivers/acpi/acpica/acevents.h drivers/acpi/acpica/evregion.c drivers/acpi/acpica/evxfregn.c +2 more+14 -70 replies
3/3ACPI: EC: Evaluate _REG outside the EC scope more carefullydrivers/acpi/ec.c drivers/acpi/internal.h drivers/acpi/scan.c+12 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHans de Goede
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

Hi Everyone,

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

https://lore.kernel.org/linux-acpi/[email protected]/

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!