mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user