diff options
author | Jenny TC <jenny.tc@intel.com> | 2017-05-24 18:12:32 +0530 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-24 03:03:47 -0700 |
commit | 43081fded2ee9976dc16b1f5bd72bcade33c33d7 (patch) | |
tree | 9363e4d56e73d0745596cba97582c6797cf8985f /power/common.c | |
parent | d7f7f6931766472fab94726e82dc9b172f9c10a5 (diff) | |
download | chrome-ec-43081fded2ee9976dc16b1f5bd72bcade33c33d7.tar.gz |
S0ix: use both SLP_S0 interrupt and host command for s0ix
EC currently uses a host command from kernel to enter s0ix.
This patch waits for the SLP_S0 interrupt to come after receiving
the host command before entering S0ix.
On the exit path, the SLP_S0 interrupt directly triggers the
exit rather than waiting for the host command.
BRANCH=none
BUG=b:37443151
TEST=check in EC logs for SLP_S0 entry and powerindebug output,
check suspend_stress_test on reef and soraka works fine,
make -j8 buildall runs fine
Change-Id: Ie5507b7a1e723532f07bc0671c2abd364f6224a2
Signed-off-by: Subramony Sesha <subramony.sesha@intel.com>
Signed-off-by: Archana Patni <archana.patni@intel.com>
Signed-off-by: Jenny TC <jenny.tc@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/513705
Commit-Ready: Jenny Tc <jenny.tc@intel.com>
Tested-by: Jenny Tc <jenny.tc@intel.com>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'power/common.c')
-rw-r--r-- | power/common.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/power/common.c b/power/common.c index acca62c6df..e64e2b9a9b 100644 --- a/power/common.c +++ b/power/common.c @@ -735,22 +735,6 @@ static int host_command_host_sleep_event(struct host_cmd_handler_args *args) host_sleep_state = p->sleep_event; -#ifdef CONFIG_POWER_S0IX - if (p->sleep_event == HOST_SLEEP_EVENT_S0IX_SUSPEND) { - CPRINTS("S0ix sus evt"); - task_wake(TASK_ID_CHIPSET); - } else if (p->sleep_event == HOST_SLEEP_EVENT_S0IX_RESUME) { - CPRINTS("S0ix res evt"); - /* - * For all scenarios where lid is not open - * this will be trigerred when other wake - * sources like keyboard, trackpad are used. - */ - if (!chipset_in_state(CHIPSET_STATE_ON)) - task_wake(TASK_ID_CHIPSET); - } -#endif /* CONFIG_POWER_S0IX */ - return EC_RES_SUCCESS; } DECLARE_HOST_COMMAND(EC_CMD_HOST_SLEEP_EVENT, |