summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-05-04 09:26:55 +0800
committerChromeBot <chrome-bot@google.com>2013-05-06 11:36:21 -0700
commit2dfccc7d28af188cdd7cb6e422bc09173caa3de9 (patch)
treed19640a2739494de91265bf11c84cfd76c14ad1a
parentb061f460eb5753da10a9680bfdb0b1eebbb0103d (diff)
downloadchrome-ec-2dfccc7d28af188cdd7cb6e422bc09173caa3de9.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 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>
-rw-r--r--common/extpower_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/extpower_usb.c b/common/extpower_usb.c
index 895406861f..a31363e04b 100644
--- a/common/extpower_usb.c
+++ b/common/extpower_usb.c
@@ -373,7 +373,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);
}