drm/vc4: dsi: Move initialisation to encoder_mode_set
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 7 Dec 2022 10:22:45 +0000 (11:22 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 15 Dec 2022 07:57:16 +0000 (08:57 +0100)
commitc9a396cf6094dd83892c9932582b4b9801254daf
treed2fcdb1b7af8b6a4c940120100336ade892b4b72
parent9fc925805d1af8591a3cbbe0331d4d29edc12dc6
drm/vc4: dsi: Move initialisation to encoder_mode_set

Breaking the bridge chain does not work for atomic bridges/panels
and generally causes issues.
We need to initialise the DSI host before the bridge pre_enables
are called, so move that to encoder_mode_set in the same way that
dw-mipi-dsi does.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20221207-rpi-dsi-bridge-v1-2-8f68ee0b0adb@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_dsi.c