drm/bridge: dw-hdmi: disable SCDC configuration for invalid setups
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 15 Mar 2019 09:54:14 +0000 (10:54 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 25 Mar 2019 12:15:00 +0000 (13:15 +0100)
commit836f90f9e2d11263f9c6d7610c82f3bc7335d9a6
tree447297d4cfb1de0e0480894d5f9a1167d35ef49b
parent3d565a21f2ce1f37479e91914734478c39b5c6fc
drm/bridge: dw-hdmi: disable SCDC configuration for invalid setups

This patch is an attempt to limit HDMI 2.0 SCDC setup when :
- the SoC embeds an HDMI 1.4 only controller
- the EDID supports SCDC but not scrambling
- the EDID supports SCDC scrambling but not for low TMDS bit rates,
  while only supporting low TMDS bit rates

This to avoid communicating with the SCDC DDC slave uncessary, and
setting the DW-HDMI TMDS Scrambler setup when not supported by the
underlying hardware.

Reported-by: Rob Herring <robh@kernel.org>
Fixes: 264fce6cc2c1 ("drm/bridge: dw-hdmi: Add SCDC and TMDS Scrambling support")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190315095414.28520-1-narmstrong@baylibre.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c