drm/vc4: Move the DSI clock divider workaround closer to the clock call.
authorEric Anholt <eric@anholt.net>
Tue, 15 Aug 2017 23:47:18 +0000 (16:47 -0700)
committerpopcornmix <popcornmix@gmail.com>
Tue, 6 Feb 2018 12:37:56 +0000 (12:37 +0000)
commit6395c90519af825eca0eef233a1b1176c6e1a7d2
treee460981d1c1f11fd8779ba54e01d5172060bb34c
parentdc9fb894bdc8a6660cb459b77052c8ae11a6f0ea
drm/vc4: Move the DSI clock divider workaround closer to the clock call.

We want the adjusted_mode->clock to be the actual clock we're
expecting to program, so that consumers see the right values for clock
and vrefresh.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170815234722.20700-1-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
(cherry picked from commit d409eeafa9ba1c0f2eb75a2619fc787808a545e4)
drivers/gpu/drm/vc4/vc4_dsi.c