summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--power/host_sleep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/power/host_sleep.c b/power/host_sleep.c
index 8bd66d035f..909999c7a9 100644
--- a/power/host_sleep.c
+++ b/power/host_sleep.c
@@ -178,6 +178,12 @@ void sleep_start_suspend(struct host_sleep_event_context *ctx,
void sleep_complete_resume(struct host_sleep_event_context *ctx)
{
+ /*
+ * Ensure we don't schedule another sleep_transition_timeout
+ * if the the HOST_SLEEP_EVENT_S0IX_RESUME message arrives before
+ * the CHIPSET task transitions to the POWER_S0ixS0 state.
+ */
+ sleep_signal_timeout = 0;
hook_call_deferred(&sleep_transition_timeout_data, -1);
ctx->sleep_transitions = sleep_signal_transitions;
}