aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2023-05-24 15:42:38 +0100
committerMarc Zyngier <maz@kernel.org>2023-05-24 15:42:38 +0100
commit5d014c3df4241337ac56fc6501876c3c52e4877a (patch)
tree682c4c931695d7a4a7099762876b8b90dff6cbd8
parentafe90a7d89f4ece38f65c097e90d5f8f5acf17b1 (diff)
downloadcs-sw-5d014c3df4241337ac56fc6501876c3c52e4877a.tar.gz
Force VCONN off before setting up connection
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--vdmtool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vdmtool.c b/vdmtool.c
index 0992d3c..a4df405 100644
--- a/vdmtool.c
+++ b/vdmtool.c
@@ -95,6 +95,9 @@ static void evt_dfpconnect(struct vdm_context *cxt)
cprintf(cxt, "Nope.\n");
return;
}
+
+ fusb302_tcpm_set_vconn(PORT(cxt), 0);
+
fusb302_pd_reset(PORT(cxt));
fusb302_tcpm_set_msg_header(PORT(cxt), 1, 1); // Source
if (cc1 > cc2) {