linux/drivers/gpu/drm/rockchip
Vladimir Oltean 9392e7340b drm/rockchip: dw_hdmi: avoid direct dereference of phy->dev.of_node
The dw_hdmi-rockchip driver validates pixel clock rates against the
HDMI PHY's internal clock provider on certain SoCs like RK3328.
This is currently achieved by dereferencing hdmi->phy->dev.of_node
to obtain the provider node, which violates the Generic PHY API's
encapsulation (the goal is for struct phy to be an opaque pointer
with a hidden definition, to be interacted with only using API
functions or NULL pointer checks, for the case where optional variants
of phy_get() did not find a PHY).

Refactor dw_hdmi_rockchip_bind() to perform a manual phandle lookup
on the "hdmi" PHY index within the controller's DT node. This provides
a parallel path to the clock provider's OF node without relying on the
internal structure of the struct phy handle.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260505100523.1922388-16-vladimir.oltean@nxp.com
2026-05-21 11:35:04 +02:00
..
analogix_dp-rockchip.c Merge drm/drm-next into drm-misc-next 2026-05-07 16:17:01 +02:00
cdn-dp-core.c Merge drm/drm-next into drm-misc-next 2026-05-07 16:17:01 +02:00
cdn-dp-core.h drm/rockchip: cdn-dp: Convert to drm bridge 2025-07-08 17:35:49 +02:00
cdn-dp-reg.c drm/rockchip: cdn-dp: add missing check in cdn_dp_config_video() 2026-03-26 20:37:02 +01:00
cdn-dp-reg.h drm/rockchip: Fix Copyright description 2024-12-14 23:52:49 +01:00
dw_dp-rockchip.c Merge drm/drm-next into drm-misc-next 2026-05-07 16:17:01 +02:00
dw_hdmi_qp-rockchip.c drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder() 2026-04-30 10:30:33 +02:00
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: avoid direct dereference of phy->dev.of_node 2026-05-21 11:35:04 +02:00
dw-mipi-dsi-rockchip.c drm/rockchip: dsi: Add support for rk3506 2026-01-08 20:00:35 +01:00
dw-mipi-dsi2-rockchip.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
inno_hdmi-rockchip.c drm/rockchip: inno-hdmi: remove now-redundant call to drm_connector_attach_encoder() 2026-04-30 10:30:33 +02:00
Kconfig drm/bridge: analogix_dp: Apply drm_bridge_connector helper 2026-04-13 17:16:21 +02:00
Makefile drm/rockchip: inno-hdmi: Convert to drm bridge 2025-12-25 00:30:33 +02:00
rk3066_hdmi.c Merge drm/drm-next into drm-misc-next 2026-05-07 16:17:01 +02:00
rk3066_hdmi.h drm/rockchip: Fix Copyright description 2024-12-14 23:52:49 +01:00
rockchip_drm_drv.c drm/rockchip: Set VOP for the DRM DMA device 2025-11-15 00:20:12 +01:00
rockchip_drm_drv.h drm/rockchip: Add RK3588 DPTX output support 2025-08-28 15:49:51 +03:00
rockchip_drm_fb.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rockchip_drm_fb.h drm/rockchip: Fix Copyright description 2024-12-14 23:52:49 +01:00
rockchip_drm_gem.c drm/rockchip: Test for imported buffers with drm_gem_is_imported() 2026-03-26 20:33:30 +01:00
rockchip_drm_gem.h drm/rockchip: Fix Copyright description 2024-12-14 23:52:49 +01:00
rockchip_drm_vop.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
rockchip_drm_vop.h drm/rockchip: Fix Copyright description 2024-12-14 23:52:49 +01:00
rockchip_drm_vop2.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
rockchip_drm_vop2.h drm/rockchip: vop2: Support setting custom background color 2026-03-18 09:59:57 +00:00
rockchip_lvds.c drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder() 2026-04-30 10:30:41 +02:00
rockchip_lvds.h drm/rockchip: lvds: switch to FIELD_PREP_WM16 macro 2025-09-02 20:06:46 -04:00
rockchip_rgb.c drm/rockchip: rgb: remove now-redundant call to drm_connector_attach_encoder() 2026-04-30 11:15:46 +02:00
rockchip_rgb.h drm/rockchip: Fix Copyright description 2024-12-14 23:52:49 +01:00
rockchip_vop_reg.c drm/rockchip: vop: Add support for rk3506 2026-01-08 20:00:35 +01:00
rockchip_vop_reg.h drm/rockchip: vop: Add support for rk3506 2026-01-08 20:00:35 +01:00
rockchip_vop2_reg.c drm/rockchip: vop2: Use drm_err_ratelimited() for wait timeouts 2026-02-21 19:44:12 +01:00