OSDN Git Service

drm/vc4: Make DSI call into the bridge after the DSI link is enabled.
authorEric Anholt <eric@anholt.net>
Thu, 21 Jun 2018 23:17:59 +0000 (16:17 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Jun 2018 20:42:09 +0000 (13:42 -0700)
commit491657a915601febfb9d0c253d843124438ae35d
tree5b5fcaf8d6721fdf5aad2f32a956e86200d42289
parent14d9deeb273c2bf4ec256589adabd8df65395d36
drm/vc4: Make DSI call into the bridge after the DSI link is enabled.

This allows panels or bridges that need to send DSI commands during
pre_enable() to successfully send them.  We delay DISP0 (aka the
actual display) enabling until after pre_enable so that pixels aren't
streaming before then.

v2: Just clear out the encoder->bridge value to disable the midlayer
    calls (idea by Andrzej Hajda).

Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180621231759.29604-1-eric@anholt.net
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/vc4/vc4_dsi.c