linux-stable/drivers/phy
Dan Carpenter 72ea2fc299 phy: stm32: fix an error code in probe
[ Upstream commit ca1c73628f ]

If "index > usbphyc->nphys" is true then this returns success but it
should return -EINVAL.

Fixes: 94c358da3a ("phy: stm32: add support for STM32 USB PHY Controller (USBPHYC)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/Y0kq8j6S+5nDdMpr@kili
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-16 09:57:08 +01:00
..
allwinner
amlogic phy: amlogic: meson8b-usb2: Use dev_err_probe() 2022-04-13 21:01:01 +02:00
broadcom phy: usb: Leave some clocks running during suspend 2022-02-23 12:01:05 +01:00
cadence
freescale
hisilicon
intel
lantiq
marvell
mediatek
motorola phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe 2022-05-09 09:05:01 +02:00
mscc
qualcomm phy: qualcomm: call clk_disable_unprepare in the error handling 2022-10-26 13:25:37 +02:00
ralink
renesas
rockchip
samsung phy: samsung: exynos5250-sata: fix missing device put in probe error paths 2022-05-09 09:05:01 +02:00
socionext phy: uniphier-usb3ss: fix unintended writing zeros to PHY register 2022-01-27 10:54:08 +01:00
st phy: stm32: fix an error code in probe 2022-11-16 09:57:08 +01:00
tegra
ti phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe 2022-05-09 09:05:01 +02:00
xilinx phy: xilinx: zynqmp: Fix bus width setting for SGMII 2022-02-16 12:54:23 +01:00
Kconfig
Makefile
phy-core-mipi-dphy.c phy: dphy: Correct lpx parameter and its derivatives(ta_{get,go,sure}) 2022-04-08 14:40:24 +02:00
phy-core.c
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c