Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: cadence: salvo: add bist fix

Very limited parts may fail to work on full speed mode (both host and
device modes) for USB3 port due to higher threshold in full speed receiver
of USB2.0 PHY.

One example failure symptom is, the enumeration is failed when connecting
full speed USB mouse to USB3 port, especially under high temperature.

The workaround is to configure threshold voltage value of single ended
receiver by setting USB2.0 PHY register AFE_RX_REG5[2:0] to 3'b101.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20230517161646.3418250-4-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Peter Chen and committed by
Vinod Koul
fe551665 1492498d

+2
+2
drivers/phy/cadence/phy-cadence-salvo.c
··· 91 91 92 92 /* USB2 PHY register definition */ 93 93 #define UTMI_REG15 0xaf 94 + #define UTMI_AFE_RX_REG5 0x12 94 95 95 96 /* TB_ADDR_TX_RCVDETSC_CTRL */ 96 97 #define RXDET_IN_P3_32KHZ BIT(0) ··· 248 247 cdns_salvo_write(salvo_phy, USB2_PHY_OFFSET, UTMI_REG15, 249 248 value | TXVALID_GATE_THRESHOLD_HS_0US); 250 249 250 + cdns_salvo_write(salvo_phy, USB2_PHY_OFFSET, UTMI_AFE_RX_REG5, 0x5); 251 251 udelay(10); 252 252 253 253 clk_disable_unprepare(salvo_phy->clk);