diff options
author | Keith Short <keithshort@chromium.org> | 2021-05-13 16:27:39 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-03 18:53:43 +0000 |
commit | 060d6f85c02278660358116a75a0f991cc47b12b (patch) | |
tree | 4ac9bffcbca1bef6d058ad98400ac0faca6285f4 /include/usb_pd.h | |
parent | 00ab08d7746028008bbc261777a1ae818cf9668e (diff) | |
download | chrome-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 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index ba29e04c86..cc85cbf2c2 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -2910,6 +2910,16 @@ void pd_set_new_power_request(int port); bool pd_capable(int port); /** + * Return true if we transition through Unattached.SNK, but we're still waiting + * to receive source caps from the partner. This indicates that the PD + * capabilities are not yet known. + * + * @param port USB-C port number + * @return true if partner is SRC, but PD capability not known + */ +bool pd_waiting_on_partner_src_caps(int port); + +/** * Returns the source caps list * * @param port USB-C port number |