android_kernel_motorola_sm6375/drivers/phy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zijun Hu 1abde07429 phy: core: Fix that API devm_of_phy_provider_unregister() fails to unregister the phy provider
[ Upstream commit c0b82ab95b4f1fbc3e3aeab9d829d012669524b6 ]

For devm_of_phy_provider_unregister(), its comment says it needs to invoke
of_phy_provider_unregister() to unregister the phy provider, but it will
not actually invoke the function since devres_destroy() does not call
devm_phy_provider_release(), and the missing of_phy_provider_unregister()
call will cause:

- The phy provider fails to be unregistered.
- Leak both memory and the OF node refcount.

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: ff76496347 ("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/stable/20241213-phy_core_fix-v6-2-40ae28f5015a%40quicinc.com
Link: https://lore.kernel.org/r/20241213-phy_core_fix-v6-2-40ae28f5015a@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-01 18:18:49 +01:00
..
allwinner
amlogic
broadcom
cadence
freescale
hisilicon phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe() 2023-08-11 11:53:47 +02:00
lantiq
marvell
mediatek
motorola phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins 2023-10-25 11:53:25 +02:00
mscc
qualcomm
ralink
renesas phy: renesas: rcar-gen3-usb2: Fix returning wrong error code 2024-02-23 08:25:06 +01:00
rockchip phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write 2023-09-23 10:59:53 +02:00
samsung
socionext
st
tegra
ti phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP 2024-02-23 08:25:06 +01:00
Kconfig
Makefile
phy-core-mipi-dphy.c
phy-core.c phy: core: Fix that API devm_of_phy_provider_unregister() fails to unregister the phy provider 2025-02-01 18:18:49 +01:00
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c