diff options
author | Scott Collyer <scollyer@google.com> | 2021-03-21 21:10:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-31 19:29:51 +0000 |
commit | 3734bffbe0538101dec858b60542a5a40fe2bb81 (patch) | |
tree | 83b9821d52f334018e3c060528576cf0546eb888 /common | |
parent | 6e904f762655264008e1ff14786ed884b869e515 (diff) | |
download | chrome-ec-3734bffbe0538101dec858b60542a5a40fe2bb81.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>
Diffstat (limited to 'common')
-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 93e9ff3bb6..645b3d81d4 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -6814,6 +6814,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, |