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>
This commit is contained in:
Vic Yang
2013-05-04 09:26:55 +08:00
committed by ChromeBot
parent b061f460eb
commit 2dfccc7d28

View File

@@ -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);
}