linux-stable/drivers/phy/rockchip
Cristian Ciocaltea 9d23e48654 phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM
In some cases, rk_hdptx_phy_runtime_resume() may be invoked before
platform_set_drvdata() is executed in ->probe(), leading to a NULL
pointer dereference when using the return of dev_get_drvdata().

Ensure platform_set_drvdata() is called before devm_pm_runtime_enable().

Reported-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Fixes: 553be2830c ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20241023-phy-sam-hdptx-rpm-fix-v1-1-87f4c994e346@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2024-12-08 21:42:07 +05:30
..
Kconfig phy: phy-rockchip-samsung-hdptx: Depend on CONFIG_COMMON_CLK 2024-10-17 20:49:16 +05:30
Makefile phy: rockchip: add usbdp combo phy driver 2024-04-12 16:59:26 +05:30
phy-rockchip-dp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
phy-rockchip-dphy-rx0.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-rockchip-emmc.c phy: rockchip: emmc, add vendor prefix to dts properties 2021-01-13 17:28:24 +05:30
phy-rockchip-inno-csidphy.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-rockchip-inno-dsidphy.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-rockchip-inno-hdmi.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-rockchip-inno-usb2.c phy: rockchip: inno-usb2: Add usb2 phys support for rk3576 2024-10-17 18:29:40 +05:30
phy-rockchip-naneng-combphy.c phy: rockchip: naneng-combphy: fix phy reset 2024-12-04 19:49:08 +05:30
phy-rockchip-pcie.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-rockchip-samsung-hdptx.c phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM 2024-12-08 21:42:07 +05:30
phy-rockchip-snps-pcie3.c phy: rockchip-snps-pcie3: add support for rockchip,rx-common-refclk-mode 2024-04-13 11:36:15 +05:30
phy-rockchip-typec.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-rockchip-usb.c phy: Use device_get_match_data() 2023-10-13 15:45:40 +05:30
phy-rockchip-usbdp.c phy: rockchip: usbdp: add rk3576 device match data 2024-10-17 20:11:05 +05:30