diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2017-07-14 13:04:19 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-28 15:04:24 -0700 |
commit | 2f09d4adea3aa4588da24521252c7efe067068f8 (patch) | |
tree | c53312b5df08528e8349db4a7f5d63bae973ecda /common/mkbp_event.c | |
parent | 5f9153638677d84b96fb924aca1b4349d8495419 (diff) | |
download | chrome-ec-2f09d4adea3aa4588da24521252c7efe067068f8.tar.gz |
power: Allow host to request higher-power wakeable S3
Allow host to request a higher-power S3 variant, "wakeable S3", in which
more wakeup sources will be enabled by the EC. The actual implementation
and list of wake sources is left up to the chipset power driver and/or
board code.
BUG=b:63037490
BRANCH=gru
TEST=With subsequent commit, compile on scarlet w/ power sequencing
version = 2.
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I469f0cd969052f173cb176196bb6d05f6f76fdb5
Reviewed-on: https://chromium-review.googlesource.com/572210
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'common/mkbp_event.c')
-rw-r--r-- | common/mkbp_event.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c index 6848bd2813..616f489df6 100644 --- a/common/mkbp_event.c +++ b/common/mkbp_event.c @@ -54,8 +54,10 @@ static inline int host_is_sleeping(void) int is_sleeping = !chipset_in_state(CHIPSET_STATE_ON); #ifdef CONFIG_POWER_TRACK_HOST_SLEEP_STATE + enum host_sleep_event sleep_state = power_get_host_sleep_state(); is_sleeping |= - (power_get_host_sleep_state() == HOST_SLEEP_EVENT_S3_SUSPEND); + (sleep_state == HOST_SLEEP_EVENT_S3_SUSPEND || + sleep_state == HOST_SLEEP_EVENT_S3_WAKEABLE_SUSPEND); #endif return is_sleeping; } |