summaryrefslogtreecommitdiff
path: root/power/common.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-10-30 19:41:59 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-31 13:04:59 -0700
commitd4d73eb806a9e480a9565f58f9637a9a669328de (patch)
tree403a94b87576f63713fd678a8c8ada8e2ebd69de /power/common.c
parent6f5ef069388fa5cdfb02aaf205d0a8e70f6b677a (diff)
downloadchrome-ec-d4d73eb806a9e480a9565f58f9637a9a669328de.tar.gz
power: Add default sleep event state HOST_SLEEP_EVENT_DEFAULT_RESET
Instead of using HOST_SLEEP_EVENT_S0IX_RESUME as a reset state to reinitialize S0ix flag, add a new default state HOST_SLEEP_EVENT_DEFAULT_RESET. This also allows different parts of the code to take correct action depending upon the state that is currently triggered. BUG=None BRANCH=None TEST=Verified that SLP_S0# interrupt doesn't get asserted during runtime S0ix. Change-Id: Id6fc8f3b015561d2899a9d39796b77a11a57e758 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/745901 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'power/common.c')
-rw-r--r--power/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/power/common.c b/power/common.c
index 467f41e9aa..452aa7f9a9 100644
--- a/power/common.c
+++ b/power/common.c
@@ -774,9 +774,9 @@ enum host_sleep_event power_get_host_sleep_state(void)
}
#ifdef CONFIG_POWER_S0IX
-void power_reset_host_sleep_state(enum host_sleep_event sleep_event)
+void power_reset_host_sleep_state(void)
{
- host_sleep_state = sleep_event;
+ host_sleep_state = HOST_SLEEP_EVENT_DEFAULT_RESET;
power_chipset_handle_host_sleep_event(host_sleep_state);
}
#endif /* CONFIG_POWER_S0IX */