diff mbox series

drm/sti: make crct disable atomic

Message ID 20181012094639.1585-1-benjamin.gaignard@linaro.org (mailing list archive)
State New, archived
Headers show
Series drm/sti: make crct disable atomic | expand

Commit Message

Benjamin Gaignard Oct. 12, 2018, 9:46 a.m. UTC
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>
---
 drivers/gpu/drm/sti/sti_crtc.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Benjamin Gaignard Oct. 18, 2018, 12:06 p.m. UTC | #1
Le ven. 12 oct. 2018 à 11:47, Benjamin Gaignard
<benjamin.gaignard@linaro.org> a écrit :
>
> 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>

Applied on drm-misc-next

> ---
>  drivers/gpu/drm/sti/sti_crtc.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c
> index 5824e6aca8f4..61c2379fba87 100644
> --- a/drivers/gpu/drm/sti/sti_crtc.c
> +++ b/drivers/gpu/drm/sti/sti_crtc.c
> @@ -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
> --
> 2.15.0
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c
index 5824e6aca8f4..61c2379fba87 100644
--- a/drivers/gpu/drm/sti/sti_crtc.c
+++ b/drivers/gpu/drm/sti/sti_crtc.c
@@ -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