[PATCH v1 0/3] ACPI: power: Keep track of power resource states

From: Rafael J. Wysocki
Date: Mon May 24 2021 - 11:29:03 EST


Hi All,

This series changes the handling of ACPI power resources so as to
track the state of each power resource in the kernel in addition to
using reference counting instead of relying on the values returned by
the _STA objects of power resources.

The underlying issue is that on some systems the _STA always returns
the same value for certain power resources even after changing their
state with _ON or _OFF, so it is not reliable in general.

Patch [1/3] changes the data type used for representing the state of
an ACPI power resources to u8 (cosmetics).

Patch [2/3] introduces the power resource state tracking (refer to the
changelog for details).

Patch [3/3] simplifies turning off the unused power resources with the
help of the state tracking mechanism (refer to the changelog for
details).

The series is not top of the patch at

https://patchwork.kernel.org/project/linux-acpi/patch/11762320.O9o76ZdvQC@kreacher/

which is going to be pushed as a fix for 5.13-rc.

Thanks!