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)
commita1224f34d72a103829d6953935d6c6621f135b83
tree1e11169cf4b14794b0e383344132bd11fe689ed5
parentbc28368596436e6e81ffc48c815b8225d96121c0
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