diff options
author | Philip Chen <philipchen@google.com> | 2018-05-29 15:28:22 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-05-30 19:14:20 +0000 |
commit | 8746200bb7c71bdee057580447c78ffb53520fae (patch) | |
tree | f9ca896b5132a65ef90f83c6fe9df0c66f908158 | |
parent | 642affe9dbbf8f9c641e4aaf0a5d718640b17d30 (diff) | |
download | chrome-ec-8746200bb7c71bdee057580447c78ffb53520fae.tar.gz |
scarlet: Don't disable idle mode in S3
I heard we only want to disable idle mode in S5, when battery is full.
BUG=b:78792296
BRANCH=scarlet
TEST=manually test on scarlet, and confirm when battery is full,
idle mode is disabled in S5 but not in S3.
Change-Id: I5809da581dd3fc3d382f606168a88263740256c0
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1077496
Commit-Queue: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: David Schneider <dnschneid@chromium.org>
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
-rw-r--r-- | board/scarlet/battery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/scarlet/battery.c b/board/scarlet/battery.c index 62a733e463..7c407fe6d1 100644 --- a/board/scarlet/battery.c +++ b/board/scarlet/battery.c @@ -257,8 +257,7 @@ int charger_profile_override(struct charge_state_data *curr) * This is a workaround for b:78792296. When AP is off and * charge termination is detected, we disable idle mode. */ - if (chipset_in_state(CHIPSET_STATE_ANY_OFF | - CHIPSET_STATE_ANY_SUSPEND)) + if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) disable_idle(); else enable_idle(); |