]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: PM: Avoid evaluating _PS3 on transitions from D3hot to D3cold
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Jun 2019 12:04:45 +0000 (14:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Jun 2019 10:29:59 +0000 (12:29 +0200)
commitb7073a790003a8b9e9328a45e0f4e03495001e60
treecd9c1f2e84d37ad6b583d5c951ad95ae84fa3f25
parent02da1999dcca3df6786fa2d28e92a4f6cecfe575
ACPI: PM: Avoid evaluating _PS3 on transitions from D3hot to D3cold

If the power state of a device with ACPI PM is changed from D3hot to
D3cold, it merely is a matter of dropping references to additional
power resources (specifically, those in the list returned by _PR3),
and the _PS3 method should not be invoked for the device then (as
it has already been evaluated during the previous transition to
D3hot).

Fixes: 41a862f8776f (ACPI / PM: Rework device power management to follow ACPI 6)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/device_pm.c