From 2dfccc7d28af188cdd7cb6e422bc09173caa3de9 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Sat, 4 May 2013 09:26:55 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.chromium.org/gerrit/50093 Reviewed-by: Todd Broch Reviewed-by: Vincent Palatin --- common/extpower_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }