phy: cadence: salvo: add bist fix
authorPeter Chen <peter.chen@nxp.com>
Wed, 17 May 2023 16:16:43 +0000 (12:16 -0400)
committerVinod Koul <vkoul@kernel.org>
Fri, 19 May 2023 17:44:06 +0000 (23:14 +0530)
commitfe5516651e19f1d4d2e239e142e51320e2b2c18c
treef871352b225458c721d9346d0a80c2597709962c
parent1492498d1301760e1d0fa21691354df9ad86bb4b
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>
drivers/phy/cadence/phy-cadence-salvo.c