drm/vc4: Convert vc4_dsi to using a bridge instead of encoder.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 15 Dec 2021 17:57:45 +0000 (17:57 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:43 +0000 (16:04 +0000)
commit50585128216398b7fca6ff6a74e0fcd5b1d667eb
tree54fd4a971091464d61bc899a2e99e34b9a7f1535
parent0f0a325b9ccae48347847d525a8c4c6d23cf0fef
drm/vc4: Convert vc4_dsi to using a bridge instead of encoder.

Remove the encoder functions, and create a bridge attached to
this dumb encoder which implements the same functionality.

As a bridge has state which an encoder doesn't, we need to
add the state management functions as well.

As there is no bridge atomic_mode_set, move the initialisation
code that was in mode_set into _pre_enable.
The code to actually enable and disable sending video are split
from the general control into _enable and _disable.

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