]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: call drm_vblank_init with correct number of crtcs
authorChen-Yu Tsai <wens@csie.org>
Fri, 8 Sep 2017 07:50:15 +0000 (15:50 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 9 Sep 2017 15:24:52 +0000 (17:24 +0200)
commit6aa0d1ca3fac19f1fd9726cbef98e1d8744c1a5e
tree33fe8ca128d69b06106d435ce7cea68928887ba4
parentd697afff6ea92cd892372b16517c91199849bf51
drm/sun4i: call drm_vblank_init with correct number of crtcs

If we want to have vblank on both pipelines at the same time, we need
to call drm_vblank_init with num_crtcs = 2.

Instead, since the crtc init calls correctly set mode_config.num_crtc,
we can move the drm_vblank_init call to after the crtc init code is
called, which is the component bind part. Then we can just pass
mode_config.num_crtc in.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908075016.18657-8-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_drv.c