From 497fea7d673b201b044a70baeb93ef04e175fa58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 5 Jan 2023 18:12:57 +0200 Subject: ec/google/chromeec: Handle ACPI S4 in chromeec_smi_sleep() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While Chromebook hardware originally would not have the capacity to do suspend-to-disk (ACPI S4), the power management code in EC should react to S4 request as if it was S5 request. Change-Id: Ida9118919c8149d94f470847d0c4aad9c0b97d3e Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/74823 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/ec/google/chromeec/smihandler.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ec/google/chromeec') diff --git a/src/ec/google/chromeec/smihandler.c b/src/ec/google/chromeec/smihandler.c index cd0cd4f41e..b5ec3715ac 100644 --- a/src/ec/google/chromeec/smihandler.c +++ b/src/ec/google/chromeec/smihandler.c @@ -53,6 +53,7 @@ void chromeec_smi_sleep(int slp_type, uint64_t s3_mask, uint64_t s5_mask) /* Enable wake events */ google_chromeec_set_wake_mask(s3_mask); break; + case ACPI_S4: case ACPI_S5: /* Enable wake events */ google_chromeec_set_wake_mask(s5_mask); -- cgit v1.2.3