summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2023-01-05 18:12:57 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-05-07 14:54:12 +0000
commit497fea7d673b201b044a70baeb93ef04e175fa58 (patch)
tree18a832e85925f9c6ba97c3c68714be4924ba68b4 /src/ec
parent4aa8593ecc4628456d6cf50e2fb4c4e7a846c6a5 (diff)
ec/google/chromeec: Handle ACPI S4 in chromeec_smi_sleep()
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 <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74823 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/smihandler.c1
1 files changed, 1 insertions, 0 deletions
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);