aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2023-09-17 13:27:03 +0100
committerMarc Zyngier <maz@kernel.org>2023-09-17 13:27:03 +0100
commit7b75f2c52ce499eac783eaa8babe93eb80c78d66 (patch)
tree04b2d04d56194aad6c1bcb0af0ef010972072101
parent248085cfe30a7dcf2ae819173604a0ae869c5612 (diff)
downloadcs-sw-7b75f2c52ce499eac783eaa8babe93eb80c78d66.tar.gz
Everything is better with a hard reset...
The original FUSB302 sometimes takes its sweet time performing the initial sync, and giving it an initial hard-reset seems to give it a renewed sense of urgency. FUSB302B doesn't seem to mind, so here it is... Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--FUSB302.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/FUSB302.c b/FUSB302.c
index adf3d8b..1307693 100644
--- a/FUSB302.c
+++ b/FUSB302.c
@@ -384,6 +384,7 @@ int16_t fusb302_tcpm_init(int16_t port)
tcpc_read(port, TCPC_REG_CONTROL3, &reg);
reg |= TCPC_REG_CONTROL3_AUTO_RETRY;
reg |= (PD_RETRY_COUNT & 0x3) << TCPC_REG_CONTROL3_N_RETRIES_POS;
+ reg |= TCPC_REG_CONTROL3_SEND_HARDRESET;
tcpc_write(port, TCPC_REG_CONTROL3, reg);
/* Create interrupt masks */