mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 11:01:19 +00:00
9abb9f762efb3f386befc74e90275fe8789e3bd2
If the PD state machine remains in SRC_DISCOVERY for an extended period of time, it's likely that a non-PD USB peripheral is attached. In this case, we don't need to inhibit deep sleep, since we're not likely to receive PD packets. This change will cause us to enter deep sleep slightly more aggressively, not inhibiting deep sleep until source caps are received or replied with GoodCRC by the port partner. We can accommodate additional task latency up to this point, since the spec calls for source caps to be sent up to 50 times before failure. BUG=b:35582718,chromium:763002 TEST=Test with `sleepmask 1` on kevin. - Go to S3 with USB-C flash drive plugged, verify `sleepmask` shows 0. - Go to S3 with zinger + USB C flash drive plugged - Unplug zinger, verify `sleepmask` shows 0. - Plug zinger, verify PD negotiates to 20V @ 2A. - Plug OEM kevin charger, verify same. BRANCH=gru Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Ib8e1bc94bdbcfddea004d572edf1ccadc8c8c1ce Reviewed-on: https://chromium-review.googlesource.com/655919 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%