]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: PM: Check states of power resources during initialization
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Oct 2021 17:14:10 +0000 (19:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 Oct 2021 17:34:06 +0000 (19:34 +0200)
commit9184100d42ed34e5b8d34e62c6a6a9f44d34417a
tree1e11169cf4b14794b0e383344132bd11fe689ed5
parentd4f128443b2a5dbc2cb806253f331b0817b69b81
ACPI: PM: Check states of power resources during initialization

To avoid situations in which the actual states of certain ACPI power
resources are not known just because they have never been referenced
by any device configuration objects, check the initial states of all
power resources as soon as they are found in the ACPI namespace (and
fall back to turning them on if the state check fails).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Andreas K. Huettel <andreas.huettel@ur.de>
drivers/acpi/power.c