kernel_samsung_a53x/drivers/phy
Zijun Hu b8a47997f3 phy: core: Fix that API devm_phy_destroy() fails to destroy the phy
commit 4dc48c88fcf82b89fdebd83a906aaa64f40fb8a9 upstream.

For devm_phy_destroy(), its comment says it needs to invoke phy_destroy()
to destroy the phy, but it will not actually invoke the function since
devres_destroy() does not call devm_phy_consume(), and the missing
phy_destroy() call will cause that the phy fails to be destroyed.

Fortunately, the faulty API has not been used by current kernel tree.
Fix by using devres_release() instead of devres_destroy() within the API.

Fixes: ff764963479a ("drivers: phy: add generic PHY framework")
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20241213-phy_core_fix-v6-3-40ae28f5015a@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-15 16:29:49 +01:00
..
allwinner Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amlogic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
broadcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
freescale Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hisilicon Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lantiq Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mediatek Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
motorola phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins 2024-11-08 11:26:20 +01:00
mscc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qualcomm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ralink Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas phy: renesas: rcar-gen3-usb2: Fix returning wrong error code 2024-11-18 12:13:23 +01:00
rockchip Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
socionext Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra phy: tegra: xusb: Add API to retrieve the port number of phy 2024-11-19 09:22:34 +01:00
ti phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP 2024-11-18 12:13:24 +01:00
xilinx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-core-mipi-dphy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-core.c phy: core: Fix that API devm_phy_destroy() fails to destroy the phy 2025-01-15 16:29:49 +01:00
phy-lgm-usb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-lpc18xx-usb-otg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-pistachio-usb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-xgene.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00