drm/vc4: hdmi: Enable the scrambler on reconnection
authorMaxime Ripard <maxime@cerno.tech>
Fri, 25 Jun 2021 14:22:39 +0000 (16:22 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 28 Jun 2021 16:01:54 +0000 (17:01 +0100)
commit9b672c5441497337f286686122a6f17fd7985cc2
treed4039d733596ed4ef041bf43ed4977d54d143783
parentd2d1ac07330bfb8e896bd58a6ac3a950d1d96fde
drm/vc4: hdmi: Enable the scrambler on reconnection

If we have a state already and disconnect/reconnect the display, the
SCDC messages won't be sent again since we didn't go through a disable /
enable cycle.

In order to fix this, let's call the vc4_hdmi_enable_scrambling function
in the detect callback if there is a mode and it needs the scrambler to
be enabled.

Fixes: 74465b84fa27 ("drm/vc4: hdmi: Enable the scrambler")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c