summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2017-11-02 17:44:12 -0600
committerchrome-bot <chrome-bot@chromium.org>2017-11-03 19:17:49 -0700
commitc7914f2ec03e94b871052b6893da0ef088bccb40 (patch)
tree2ec3b78a7438dce8df804bd28d1ba1dbea7d575d
parent1c13178376ed622c877f0bdbb85b26e3b606f0ce (diff)
downloadchrome-ec-c7914f2ec03e94b871052b6893da0ef088bccb40.tar.gz
kahlee: Don't hold pwrbtn=LOW in G3
Change chipset_force_shutdown() to not call power_button_pch_press() when called from POWER_S5G3 state, so that we don't set pwrbtn=LOW when entering G3. BUG=b:68760602 BRANCH=none TEST=push kahlee power button Change-Id: I931fc73f2386f8124f1e082cccb095e3863cbb99 Signed-off-by: Edward Hill <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/752682 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--power/stoney.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/stoney.c b/power/stoney.c
index b2726f180d..7b10746326 100644
--- a/power/stoney.c
+++ b/power/stoney.c
@@ -34,7 +34,7 @@ void chipset_force_shutdown(void)
{
CPRINTS("%s()", __func__);
- if (!chipset_in_state(CHIPSET_STATE_HARD_OFF)) {
+ if (!chipset_in_state(CHIPSET_STATE_ANY_OFF)) {
forcing_shutdown = 1;
power_button_pch_press();
}