diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-10-15 20:01:28 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-10-19 20:35:39 +0300 |
commit | 7a63296d6f579a02b2675b4b0fe5b1cd3235e8d3 (patch) | |
tree | 0f6f75f510f81b568f3e701e189a2871c8b39efe /drivers/ata/ahci_xgene.c | |
parent | a1224f34d72a103829d6953935d6c6621f135b83 (diff) | |
download | linux-7a63296d6f579a02b2675b4b0fe5b1cd3235e8d3.tar.xz |
ACPI: PM: Turn off unused wakeup power resources
If an ACPI power resource is found to be "on" during the
initialization of the list of wakeup power resources of a device,
it is reference counted and its wakeup_enabled flag is set, which is
problematic if the deivce in question is the only user of the given
power resource, it is never runtime-suspended and it is not allowed
to wake up the system from sleep, because in that case the given
power resource will stay "on" until the system reboots and energy
will be wasted.
It is better to simply turn off wakeup power resources that are "on"
during the initialization unless their reference counters are not
zero, because that may be the only opportunity to prevent them from
staying in the "on" state all the time.
Fixes: b5d667eb392e ("ACPI / PM: Take unusual configurations of power resources into account")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/ata/ahci_xgene.c')
0 files changed, 0 insertions, 0 deletions