drm/sti: make crct disable atomic
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 12 Oct 2018 09:46:38 +0000 (11:46 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Thu, 18 Oct 2018 11:50:22 +0000 (13:50 +0200)
Wait until the next vblank to be sure that crtc has been disabled.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181012094639.1585-1-benjamin.gaignard@linaro.org
drivers/gpu/drm/sti/sti_crtc.c

index 5824e6aca8f4af17c23050a6ec1bd59905b1f22c..61c2379fba879463d2da74e1873e559bb74a8f7f 100644 (file)
@@ -40,6 +40,8 @@ static void sti_crtc_atomic_disable(struct drm_crtc *crtc,
        DRM_DEBUG_DRIVER("\n");
 
        mixer->status = STI_MIXER_DISABLING;
+
+       drm_crtc_wait_one_vblank(crtc);
 }
 
 static int