diff options
author | Fabrice Gasnier <fabrice.gasnier@foss.st.com> | 2022-07-13 16:39:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 16:15:33 +0300 |
commit | d29787a42e24f58bc5f42a03d99524556474db77 (patch) | |
tree | 857f9a0e1a88a2cf677b99dbf39fcd333cfe362c /mm/nommu.c | |
parent | 043dc5d046b26227f24a8ac7905b7906dbb9c7d5 (diff) | |
download | linux-d29787a42e24f58bc5f42a03d99524556474db77.tar.xz |
phy: stm32: fix error return in stm32_usbphyc_phy_init
[ Upstream commit 32b378a9179ae4db61cfc5d502717214e6cd1e1c ]
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: 5b1af71280ab ("phy: stm32: rework PLL Lock detection")
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20220713133953.595134-1-fabrice.gasnier@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions