Skip to content
Commit 32b378a9 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Vinod Koul
Browse files

phy: stm32: fix error return in stm32_usbphyc_phy_init



Error code is overridden, in case the PLL doesn't lock. So, the USB
initialization can continue. This leads to a platform freeze.
This can be avoided by returning proper error code to avoid USB probe
freezing the platform. It also displays proper errors in log.

Fixes: 5b1af712 ("phy: stm32: rework PLL Lock detection")
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20220713133953.595134-1-fabrice.gasnier@foss.st.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 08fd292f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment