usb: phy: Workaround for USB erratum-A005728
authorSuresh Gupta <B42813@freescale.com>
Mon, 24 Jun 2019 07:22:16 +0000 (15:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 16:52:20 +0000 (18:52 +0200)
commit5dfff995f9cb21c2910e40f5d4da53473356a792
tree92c692395379b592d35230299c103a375d211284
parent4f182835508c2d3dc6f5cc0e56b65b4c1ca325f8
usb: phy: Workaround for USB erratum-A005728

PHY_CLK_VALID bit for UTMI PHY in USBDR does not set even
if PHY is providing valid clock. Workaround for this
involves resetting of PHY and check PHY_CLK_VALID bit
multiple times. If PHY_CLK_VALID bit is still not set even
after 5 retries, it would be safe to deaclare that PHY
clock is not available.
This erratum is applicable for USBDR less then ver 2.4.

Signed-off-by: Suresh Gupta <B42813@freescale.com>
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
Link: https://lore.kernel.org/r/20190624072219.15258-2-yinbo.zhu@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-fsl.c
drivers/usb/host/ehci-fsl.h