summaryrefslogtreecommitdiff
path: root/include/usb_mode.h
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-08-21 11:14:20 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-28 23:02:02 +0000
commit2d87a73bf82b100a7b560b4a4f7a48b4f21ea469 (patch)
tree2c363d0d0c83fef432e44212718f99654133fff9 /include/usb_mode.h
parent10cecaa15837579b6e52091507da003287c8e692 (diff)
downloadchrome-ec-2d87a73bf82b100a7b560b4a4f7a48b4f21ea469.tar.gz
TCPMv2: Send SOP'/SOP'' VDM only when the port is VCONN src
According to USB PD spec, section 2.5.4, only VCONN source can communicate with the cable plug. This CL checks if the port is the VCONN before sending SOP'/SOP'' messages. If there is a VCONN source failure, port retries swapping the VCONN times before marking the VDM as failed/naked. The CL also enables falling back to DP mode in case enter mode thunderbolt fails. BUG=b:148528713 BRANCH=None TEST=Tested on volteer, the port sends SOP'/SOP'' VDMs to the cable only if it's the VCONN source Signed-off-by: Ayushee <ayushee.shah@intel.com> Change-Id: I5880104a7a42b3e7de9e472affd41e937d36f9a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2368066 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_mode.h')
-rw-r--r--include/usb_mode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/usb_mode.h b/include/usb_mode.h
index 47b03599e2..a479c36d5c 100644
--- a/include/usb_mode.h
+++ b/include/usb_mode.h
@@ -24,8 +24,7 @@
void enter_usb_init(int port);
/*
- * Resets USB4 state and mux state on receiving an invalid state/NAK/timeout
- * or empty enter USB payload.
+ * Resets USB4 state and mux state.
*
* @param port USB-C port number
*/