phy: stm32-usphyc: add 200 to 300 us delay to fix timeout on some machines
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 27 Feb 2023 15:13:19 +0000 (16:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 31 Mar 2023 13:29:16 +0000 (18:59 +0530)
commitc8879d3f87ffbaf6954dabec2199905616b0139e
treeccb6092e07a8da108bf5de7702a42a335183e2c7
parent84a59a314263c21de1b308abda7f7eea92da740d
phy: stm32-usphyc: add 200 to 300 us delay to fix timeout on some machines

An minimum udelay of 200 us seems to be necessary on some machines. After
the setup of the pll, which needs about 100 us to be locked there seem
to be additional 100 us to get the phy really functional. Without this
delay the usb runs not functional. With this additional short udelay
this issue was not reported again.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20230227151318.1894938-1-m.grzeschik@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/st/phy-stm32-usbphyc.c