drm/vc4: Don't try disabling SCDC on Pi0-3.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 16 Nov 2021 10:34:34 +0000 (10:34 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 16 Nov 2021 11:34:47 +0000 (11:34 +0000)
commite92d0a9baa4d3bca47cde054452cd6854caaebdb
tree3cdb355d0f48f75a77d14ee63c9b030bfab1ec61
parentd6bbe477be2215deef6f9a4c6a7e31c58915cca1
drm/vc4: Don't try disabling SCDC on Pi0-3.

The code that set the scdc_enabled flag to ensure it was
disabled at boot time also ran on Pi0-3 where there is no
SCDC support. This lead to a warning in vc4_hdmi_encoder_post_crtc_disable
due to vc4_hdmi_disable_scrambling being called and trying to
read (and write) register HDMI_SCRAMBLER_CTL which doesn't
exist on those platforms.

Only set the flag should the interface be configured to support
more than HDMI 1.4.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hdmi.c