summaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2020-02-14 07:53:11 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-15 02:12:59 +0000
commit4588844d403aad4b9c6bd0732ad6423646ce7a51 (patch)
treeb14fc6579eb9633dbd3b2110e791d139c8fa353f /fuzz
parent139e94729bc55c6dbf838d1136c04b7ce711c48f (diff)
downloadchrome-ec-4588844d403aad4b9c6bd0732ad6423646ce7a51.tar.gz
usbc: remove tri-state polarity
TCPCIr2 had an issue with setting CC coming out of DRP that if the polarity was not retained that the connection dropped back to OPEN. Unfortunately this change broke many of the other TCPCI implementations. I am working on a different method of dealing with coming out of DRP and this is no longer needed. BUG=none BRANCH=none TEST=verify USB-C is working Change-Id: Ifa8f26d417df2f5d5f41a23fbf7e6f9129031e94 Signed-off-by: Denis Brockus <dbrockus@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2056968 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/usb_pd_fuzz.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fuzz/usb_pd_fuzz.c b/fuzz/usb_pd_fuzz.c
index 1d44921817..7b7b9bfc5a 100644
--- a/fuzz/usb_pd_fuzz.c
+++ b/fuzz/usb_pd_fuzz.c
@@ -31,7 +31,11 @@ static int mock_tcpm_select_rp_value(int port, int rp)
}
static int mock_tcpm_set_cc(int port, int pull) { return EC_SUCCESS; }
-static int mock_tcpm_set_polarity(int port, int polarity) { return EC_SUCCESS; }
+static int mock_tcpm_set_polarity(int port, enum tcpc_cc_polarity polarity)
+{
+ return EC_SUCCESS;
+}
+
static int mock_tcpm_set_vconn(int port, int enable) { return EC_SUCCESS; }
static int mock_tcpm_set_msg_header(int port,
int power_role, int data_role) { return EC_SUCCESS; }