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(-)

-- 
2.25.1

Reply via email to