Skip to content

drm/bridge: dw-hdmi: use display_info and support non-HDMI downstream connectors

Gianfranco Mariotti dri-devel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/bridge: dw-hdmi: use connector->display_info for HDMI and audio detectiondrivers/gpu/drm/bridge/synopsys/dw-hdmi.c+4 -140 replies
2/2drm/bridge: dw-hdmi: enable HDMI mode for non-HDMI/DVI downstream connectorsdrivers/gpu/drm/bridge/synopsys/dw-hdmi.c+27 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drm/bridge: dw-hdmi: use display_info and support non-HDMI downstream connectors

This short series updates dw-hdmi's HDMI vs. DVI and audio detection to use connector->display_info and fixes HDMI output framing when dw-hdmi is chained to an active protocol-converting downstream bridge.

Patch 1 resolves the FIXME in dw_hdmi_edid_read() by removing the deprecated drm_edid_raw() / drm_detect_hdmi_monitor() / drm_detect_monitor_audio() calls and latching connector->display_info.is_hdmi and connector->display_info.has_audio in dw_hdmi_bridge_atomic_enable() under hdmi->mutex. This fixes HDMI and audio detection when EDID is read by a downstream display-connector, when an EDID override/firmware EDID is active, or when an EDID read fails after unplugging an HDMI sink, while preserving the cached flags across transient RXSENSE power cycles in dw_hdmi_irq().

Patch 2 enables HDMI TMDS framing (while keeping RGB full-range) when the pipeline terminates in a non-HDMI/DVI connector (e.g. LVDS, eDP, DP, or DSI behind a protocol-converting HDMI receiver bridge such as Rockchip RK628 or Lontium LT9721), where the terminal connector's display_info never carries an HDMI VSDB. Patch 1 stands independently if reviewers prefer a more general bridge-level mechanism for Patch 2.

Gianfranco Mariotti (2):
drm/bridge: dw-hdmi: use connector->display_info for HDMI and audio
detection
drm/bridge: dw-hdmi: enable HDMI mode for non-HDMI/DVI downstream
connectors

 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 45 +++++++++++++++--------
 1 file changed, 30 insertions(+), 15 deletions(-)
Signature · 1 line
2.25.1