summaryrefslogtreecommitdiff
path: root/common/console_output.c
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2020-09-30 16:50:18 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-16 11:55:52 +0000
commit932abf5c9c9f46ef8428e889c4380b6cbfa55062 (patch)
treeec42690b97c641fb9a1111ca920ec3436d39085d /common/console_output.c
parent94b07b000f55eb8922014b4a09a91a6d9866b70f (diff)
downloadchrome-ec-932abf5c9c9f46ef8428e889c4380b6cbfa55062.tar.gz
TCPMv2: clear TC_FLAGS_PR_IN_PROGRESS if ProtocolError
While doing PRS_SNK_SRC on a DRP hub by unpluging the charger, if the port-partner can't hold tSrcTransition, and it might brown out at any time in PR_SWAP AMS (e.g. brown out and can't reply GoodCRC to Accept), and this will cause a ProtocolError. In that case, we should clear the TC_FLAGS_PR_IN_PROGRESS so that the TC sm could start to monitor the VBUS level and restart the PD state machine. BUG=b:169113820 TEST=unplug the charger from a DRP hub, and DUT starts to source the hub instead of staying at SNK_READY. BRANCH=none Change-Id: Iccb85a13731004a214446ce4d915fea58170ea00 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2440015 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common/console_output.c')
0 files changed, 0 insertions, 0 deletions