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: 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>

authored by

Michael Grzeschik and committed by
Vinod Koul
c8879d3f 84a59a31

+3
+3
drivers/phy/st/phy-stm32-usbphyc.c
··· 317 317 318 318 stm32_usbphyc_set_bits(pll_reg, PLLEN); 319 319 320 + /* Wait for maximum lock time */ 321 + usleep_range(200, 300); 322 + 320 323 return 0; 321 324 322 325 reg_disable: