diff options
author | Vic Yang <victoryang@chromium.org> | 2013-10-15 11:01:43 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-10-15 14:15:46 +0000 |
commit | e96a8dc7cf707e847da138c8450f955aa8154d5f (patch) | |
tree | f064fc3cd1b591ac1a56f7867df31b948ed86f00 | |
parent | 42a33b9da39c33e00fc86102177591600cf8a613 (diff) | |
download | chrome-ec-e96a8dc7cf707e847da138c8450f955aa8154d5f.tar.gz |
Check cut off even if the AP is in S0/S3
We were relying on the fact that AP shuts down when battery is below
2.5%. However, this does not guarantee cell voltages don't hit 3.2V.
Let's also check cut off condition in S0 and S3.
BUG=chrome-os-partner:23055
TEST=None
BRANCH=Spring
Change-Id: If80ef380802017ac1c5736a9a2ff8bf6d2819b59
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/173072
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | common/battery_spring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/common/battery_spring.c b/common/battery_spring.c index b1f248fae9..351745a1a5 100644 --- a/common/battery_spring.c +++ b/common/battery_spring.c @@ -69,8 +69,6 @@ static int battery_want_cut_off(void) if (battery_is_cut_off()) return 0; - if (chipset_in_state(CHIPSET_STATE_ON | CHIPSET_STATE_SUSPEND)) - return 0; if (board_get_ac()) return 0; |