Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbda4b38 authored by Lukas Wunner's avatar Lukas Wunner Committed by Rafael J. Wysocki
Browse files

ACPI / PM: Runtime resume devices when waking from hibernate



Commit 58a1fbbb ("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: 58a1fbbb (PM / PCI / ACPI: Kick devices that might have been reset by firmware)
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 27614273
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -714,6 +714,7 @@ static int acpi_hibernation_enter(void)


static void acpi_hibernation_leave(void)
static void acpi_hibernation_leave(void)
{
{
	pm_set_resume_via_firmware();
	/*
	/*
	 * If ACPI is not enabled by the BIOS and the boot kernel, we need to
	 * If ACPI is not enabled by the BIOS and the boot kernel, we need to
	 * enable it here.
	 * enable it here.