diff options
| author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2026-05-05 13:05:07 +0300 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2026-05-21 11:35:04 +0200 |
| commit | 9392e7340bffb406a705de755adfb44eab547d40 (patch) | |
| tree | a8dd4f5207801a7ad49112b1addf05666a1d0ca9 /include/linux/debugobjects.h | |
| parent | a48bbcc7ac739e93562d6148c6fa504c2e9f22f8 (diff) | |
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
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
