]> Git Repo - linux.git/commit
ACPI: power: Turn off unused power resources unconditionally
authorRafael J. Wysocki <[email protected]>
Thu, 18 Mar 2021 18:28:28 +0000 (19:28 +0100)
committerRafael J. Wysocki <[email protected]>
Tue, 23 Mar 2021 18:40:28 +0000 (19:40 +0100)
commit7e4fdeafa61f2b653fcf9678f09935e55756aed2
treea281388cac429863a03305dba2c99cae11fb81a4
parent4b9ee772eaa82188b0eb8e05bdd1707c2a992004
ACPI: power: Turn off unused power resources unconditionally

According to the ACPI specification (section 7.2.2 in ACPI 6.4), the
OS may evaluate the _OFF method of a power resource that is "off"
already [1], and in particular that can be done in the case of unused
power resources.

Accordingly, modify acpi_turn_off_unused_power_resources() to
evaluate the _OFF method for each of the unused power resources
unconditionally which may help to work around BIOS issues where the
return value of _STA for a power resource does not reflect the
actual state of the power resource [2].

Link: https://uefi.org/specs/ACPI/6.4/07_Power_and_Performance_Mgmt/declaring-a-power-resource-object.html#off
Link: https://lore.kernel.org/lkml/[email protected]/
Tested-by: Wendy Wang <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/acpi/power.c
This page took 0.055209 seconds and 4 git commands to generate.