diff options
author | Marc Zyngier <maz@kernel.org> | 2023-09-17 13:27:03 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-09-17 13:27:03 +0100 |
commit | 7b75f2c52ce499eac783eaa8babe93eb80c78d66 (patch) | |
tree | 04b2d04d56194aad6c1bcb0af0ef010972072101 | |
parent | 248085cfe30a7dcf2ae819173604a0ae869c5612 (diff) | |
download | cs-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -384,6 +384,7 @@ int16_t fusb302_tcpm_init(int16_t port) tcpc_read(port, TCPC_REG_CONTROL3, ®); 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 */ |