diff options
author | Scott Collyer <scollyer@google.com> | 2021-03-21 21:10:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-01 17:59:41 +0000 |
commit | a17fa216d466880d7045d57e0c07c5f8f4176c5e (patch) | |
tree | b35c2339376974eec3cc6ed95acf2dfc9f076e4a | |
parent | f75da1ae8c5b622c7b85e484362116aa729f8505 (diff) | |
download | chrome-ec-a17fa216d466880d7045d57e0c07c5f8f4176c5e.tar.gz |
TCPMv2: UFP-D: Make sure OPOS table is cleared in discovery
This CL adds a call to reset the OPOS value in the alt_dp_mode_opos
table at the beginning of discovery. This required to pass the VDMU.E5
PD2.0 deterministic compliance test.
BUG=b:175660576,b:180465870
BRANCH=None
TEST=verifed that VDMU.E5 PD2.0 deterministic compliance test is
passing when it's run in the full suite.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I330f35aca88a54c436c84b74618a586e4daaf07b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2777691
Tested-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2799917
Tested-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index c79c3ac4bf..e43c4b9d5d 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -6812,6 +6812,9 @@ void pd_dfp_discovery_init(int port) if (IS_ENABLED(CONFIG_USB_PD_USB4)) enter_usb_init(port); + + if (IS_ENABLED(CONFIG_USB_PD_ALT_MODE_UFP_DP)) + pd_ufp_set_dp_opos(port, 0); } __maybe_unused void pd_discovery_access_clear(int port, |