ACPICA: Enable sleep button on ACPI legacy wake
authorAnchal Agarwal <anchalag@amazon.com>
Fri, 14 Feb 2020 18:47:58 +0000 (10:47 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 16 Feb 2020 09:19:52 +0000 (10:19 +0100)
commita1dc35b840e9e7a91663a288ecb4912b9e4a1406
tree7862915850498eec1eec076cf717e88aa2c5440f
parent4444b178529300a173b927bbef3e65d328fc15be
ACPICA: Enable sleep button on ACPI legacy wake

ACPICA commit 9383f5b01091e432c05f802a57edc20d329eec1f

Hibernation (S4) is triggered in a guest when it recieves a sleep
trigger from the hypervisor. When the guest resumes from this power
state, it does not see the sleep_enabled bit. In otherwords, the sleep
button is not enabled on waking from an S4 state. This causes
subsequent invocation of sleep state to fail in the guest.

Fix this problem by enabling the sleep button in ACPI legacy wake.

Signed-off-by: Anchal Agarwal <anchalag@amazon.com>
Reviewed-by: Balbir Singh <sblbir@amazon.com>
Reviewed-by: Frank van der Linden <fllinden@amazon.com>
[ ek: changelog]

Link: https://github.com/acpica/acpica/commit/9383f5b0
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Anchal Agarwal <anchalag@amazon.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/hwsleep.c