summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2017-08-22 16:04:35 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-08-23 12:19:08 -0700
commit219a77416993966005067df9be1dd6f16ca8d0ed (patch)
tree2ada1c30e8779b006e5f13bf09b62607855d6e66 /power
parent13269c21175f12c9feae961450e68099c2f30dab (diff)
downloadchrome-ec-219a77416993966005067df9be1dd6f16ca8d0ed.tar.gz
power/rk3399: Fix wrong return state when POWER_S3S0 failed
Currently we are returning POWER_S3S0 when POWER_S3S0 failed, which would cause dead loop. Return POWER_S0S3 instead to avoid that. BUG=b:64886507 TEST=build and boot Change-Id: Ia6567ee6edd399c0eb39e88006436753fa303507 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/625637 Tested-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/rk3399.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/rk3399.c b/power/rk3399.c
index 9dbbd1bc4a..15181844e7 100644
--- a/power/rk3399.c
+++ b/power/rk3399.c
@@ -471,7 +471,7 @@ enum power_state power_handle_state(enum power_state state)
if (power_wait_signals(IN_PGOOD_S0)) {
chipset_force_shutdown();
- return POWER_S3S0;
+ return POWER_S0S3;
}
/* Call hooks now that rails are up */