From 43081fded2ee9976dc16b1f5bd72bcade33c33d7 Mon Sep 17 00:00:00 2001 From: Jenny TC Date: Wed, 24 May 2017 18:12:32 +0530 Subject: 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 Signed-off-by: Archana Patni Signed-off-by: Jenny TC Reviewed-on: https://chromium-review.googlesource.com/513705 Commit-Ready: Jenny Tc Tested-by: Jenny Tc Reviewed-by: Furquan Shaikh --- power/common.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'power/common.c') 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, -- cgit v1.2.1