diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-10-22 11:37:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-23 10:10:56 -0700 |
commit | 847978564a3ac343c191be94e7a83076ead33f70 (patch) | |
tree | d2b5292d9b3280b888fc3d8249d70dbe760a18ab /board/pdeval-stm32f072/usb_pd_policy.c | |
parent | accc98d7c3fdcad6e35ac2ebeb63fbda3abf8d2e (diff) | |
download | chrome-ec-847978564a3ac343c191be94e7a83076ead33f70.tar.gz |
pd: send soft reset on boot if VBUS is present
On boot, if VBUS is present, then when PD protocol gets to
SNK_DISCOVERY state, if it times out waiting for source cap,
then send attempt to send a soft reset first instead of
directly sending a hard reset. This allows us to not lose
VBUS in the case that we were in a stable contract as a sink
before this boot (for example a sysjump or EC reboot).
BUG=chrome-os-partner:44085, chrome-os-partner:44952
BRANCH=none
TEST=test on glados and samus. test by sysjumping between
RO and RW with zinger plugged in and no battery, and verify
that we don't lose power. also test rebooting with a battery
and verify we don't lose power. also tested with a third
party PD charger.
Change-Id: Ib7ce46d8b9843db66805ba3237d8919d611324e0
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/308201
Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'board/pdeval-stm32f072/usb_pd_policy.c')
0 files changed, 0 insertions, 0 deletions