summaryrefslogtreecommitdiff
path: root/common/usb_pd_protocol.c
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-05-13 16:27:39 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-03 18:53:43 +0000
commit060d6f85c02278660358116a75a0f991cc47b12b (patch)
tree4ac9bffcbca1bef6d058ad98400ac0faca6285f4 /common/usb_pd_protocol.c
parent00ab08d7746028008bbc261777a1ae818cf9668e (diff)
downloadchrome-ec-060d6f85c02278660358116a75a0f991cc47b12b.tar.gz
tcpmv2: Don't enable USB mode until PD state resolved
Don't enable USB superspeed signals until the PD capability is known. This fixes an issue where platforms that enable the virtual USB mux violate the tSenderResponse timeout when the attached SRC sends the Source Capabilities message. BUG=b:187796705 BRANCH=none TEST=Volteer - connect PD charger, obsserve no hard reset TEST=Connect non-PD USB device, verify USB mode is enabled TEST=Connect USB+DP monitor, verify DP mode entry and USB mode enabled TEST=Connect USB4 dock, verify USB4 entry TEST=faft_pd test suite passes on Voxel Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I4be08874178d1e225cf41939b9626a81b0da0524 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895424 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Tested-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r--common/usb_pd_protocol.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 13e6c7842f..6a72d8e62a 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -399,6 +399,15 @@ bool pd_capable(int port)
}
/*
+ * For TCPMv1, this routine always returns false so that the USB3 signals
+ * are connected without delay when the initial connection is UFP.
+ */
+bool pd_waiting_on_partner_src_caps(int port)
+{
+ return false;
+}
+
+/*
* Return true if partner port is capable of communication over USB data
* lines.
*/