linux/drivers/gpu/drm/msm/hdmi
Guangshuo Li f4fae975db drm/msm/hdmi_phy: fix runtime PM cleanup on probe failure
msm_hdmi_phy_probe() enables runtime PM before enabling the PHY
resources and initializing the PLL, but failures from either operation
return without calling the matching pm_runtime_disable().

The remove path disables runtime PM, but it is not called when probe
fails. As a result, runtime PM remains enabled after an unsuccessful
probe.

Route failures after pm_runtime_enable() through a common error path
and disable runtime PM before returning.

This issue was found by manual code inspection.

Fixes: 15b4a45238 ("drm/msm/hdmi: Create a separate HDMI PHY driver")
Cc: stable@vger.kernel.org
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/753043/
Link: https://lore.kernel.org/r/20260913085814.1509352-1-lgs201920130244@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2026-09-15 02:09:28 +03:00
..
hdmi_audio.c drm/msm/hdmi: Consistently use u32 instead of uint32_t 2026-03-25 08:06:09 +02:00
hdmi_bridge.c drm/msm/hdmi_bridge: Simplify register bit updates 2026-07-31 16:51:56 +03:00
hdmi_hdcp.c drm/msm/hdmi_hdcp: Simplify register bit updates 2026-07-31 16:51:56 +03:00
hdmi_hpd.c drm/msm/hdmi: Consistently use u32 instead of uint32_t 2026-03-25 08:06:09 +02:00
hdmi_i2c.c Merge tag 'drm-msm-next-2026-04-02' of https://gitlab.freedesktop.org/drm/msm into drm-next 2026-04-03 18:57:00 +10:00
hdmi_phy_8x60.c drm/msm/hdmi: Drop redundant 'int' for longs 2026-03-25 08:06:09 +02:00
hdmi_phy_8x74.c drm/msm/hdmi: Drop redundant 'int' for longs 2026-03-25 08:06:09 +02:00
hdmi_phy_8960.c drm/msm/hdmi: Drop redundant 'int' for longs 2026-03-25 08:06:09 +02:00
hdmi_phy_8996.c drm/msm/hdmi: Use the common TMDS char rate constants in 8996 PHY 2026-05-21 11:45:53 +02:00
hdmi_phy_8998.c drm/msm/hdmi: Use the common TMDS char rate constants in 8998 PHY 2026-05-21 11:45:53 +02:00
hdmi_phy.c drm/msm/hdmi_phy: fix runtime PM cleanup on probe failure 2026-09-15 02:09:28 +03:00
hdmi_pll_8960.c drm/msm/hdmi_pll_8960: convert from round_rate() to determine_rate() 2025-08-29 01:51:46 +03:00
hdmi.c drm/msm/hdmi: switch to of_drm_get_bridge_by_endpoint() 2026-05-19 10:57:25 +02:00
hdmi.h drm/msm/hdmi_bridge: Simplify register bit updates 2026-07-31 16:51:56 +03:00