summaryrefslogtreecommitdiff
path: root/board/scarlet
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2018-05-29 15:28:22 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-31 03:50:24 -0700
commita5f6726587edb2761caeb396e4a10d32a74ed09e (patch)
treed555b9422b51d76261bc089306124253de72d775 /board/scarlet
parent3dff02fa73108a5d0d68fc9bc0c11a1b32cae478 (diff)
downloadchrome-ec-a5f6726587edb2761caeb396e4a10d32a74ed09e.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> (cherry picked from commit 8746200bb7c71bdee057580447c78ffb53520fae) Reviewed-on: https://chromium-review.googlesource.com/1079732 Commit-Ready: Philip Chen <philipchen@chromium.org> Reviewed-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r--board/scarlet/battery.c3
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();