]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ACPI / PM: Runtime resume devices when waking from hibernate
authorLukas Wunner <lukas@wunner.de>
Tue, 22 Mar 2016 23:11:20 +0000 (00:11 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Mar 2016 01:43:11 +0000 (02:43 +0100)
commitfbda4b38fa3995aa0777fe9cbbdcb223c6292083
treed4d9f9750a861185e8a249e480332894ffc69000
parent276142730c39c9839465a36a90e5674a8c34e839
ACPI / PM: Runtime resume devices when waking from hibernate

Commit 58a1fbbb2ee8 ("PM / PCI / ACPI: Kick devices that might have been
reset by firmware") added a runtime resume for devices that were runtime
suspended when the system entered suspend-to-RAM.

Briefly, the motivation was to ensure that devices did not remain in a
reset-power-on state after resume, potentially preventing deep SoC-wide
low-power states from being entered on idle.

Currently we're not doing the same when leaving suspend-to-disk and this
asymmetry is a problem if drivers rely on the automatic resume triggered
by pm_complete_with_resume_check(). Fix it.

Fixes: 58a1fbbb2ee8 (PM / PCI / ACPI: Kick devices that might have been reset by firmware)
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c