diff options
author | Vic Yang <victoryang@chromium.org> | 2013-05-04 09:26:55 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-05-06 12:55:13 -0700 |
commit | a8ac50faa31c4d9ea305ab974384df4e16bc8ac6 (patch) | |
tree | b1fd5a0631d20e3614d219c3d92e32101986e9d2 | |
parent | 041b39d0cd2232a2ed923517635073cae7a2b3f4 (diff) | |
download | chrome-ec-a8ac50faa31c4d9ea305ab974384df4e16bc8ac6.tar.gz |
spring: Fix S3 USB charging bug
The EC currently assumes the AP only provides USB power during S0, which
is incorrect. This CL adds S3 so that it behaves when the device is
suspended.
BUG=chrome-os-partner:19190
TEST=Suspend and unplug power. Doesn't hear clicking sound.
BRANCH=Spring
Original-Change-Id: Ice1421bda55b2fee408ba062ed3de7a697ccd0c8
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50093
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 2dfccc7d28af188cdd7cb6e422bc09173caa3de9)
Change-Id: I4ae19bc5813ce4d5ff096cf564f455eb988815e3
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50193
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/spring/usb_charging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index 1abec4ea82..a46c753347 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -434,7 +434,7 @@ static int usb_need_boost(int dev_type) { if (dev_type & POWERED_5000_DEVICE_TYPE) return 0; - if (chipset_in_state(CHIPSET_STATE_ON)) + if (chipset_in_state(CHIPSET_STATE_ON | CHIPSET_STATE_SUSPEND)) return 1; return (dev_type != TSU6721_TYPE_NONE); } |