Commit ca614aad authored by Benjamin Gaignard's avatar Benjamin Gaignard

drm: sti: use drm_crtc_vblank_{on/off} instead of drm_vblank_{on/off}

Make sure that vblank is enabled when crtc commit is call.
Replace drm_vblank_off() by drm_crtc_vblank_off()
Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
parent 589b347b
...@@ -64,6 +64,8 @@ static void sti_drm_crtc_commit(struct drm_crtc *crtc) ...@@ -64,6 +64,8 @@ static void sti_drm_crtc_commit(struct drm_crtc *crtc)
/* Enable layer on mixer */ /* Enable layer on mixer */
if (sti_mixer_set_layer_status(mixer, layer, true)) if (sti_mixer_set_layer_status(mixer, layer, true))
DRM_ERROR("Can not enable layer at mixer\n"); DRM_ERROR("Can not enable layer at mixer\n");
drm_crtc_vblank_on(crtc);
} }
static bool sti_drm_crtc_mode_fixup(struct drm_crtc *crtc, static bool sti_drm_crtc_mode_fixup(struct drm_crtc *crtc,
...@@ -224,7 +226,7 @@ static void sti_drm_crtc_disable(struct drm_crtc *crtc) ...@@ -224,7 +226,7 @@ static void sti_drm_crtc_disable(struct drm_crtc *crtc)
/* Then disable layer itself */ /* Then disable layer itself */
sti_layer_disable(layer); sti_layer_disable(layer);
drm_vblank_off(crtc->dev, mixer->id); drm_crtc_vblank_off(crtc);
/* Disable pixel clock and compo IP clocks */ /* Disable pixel clock and compo IP clocks */
if (mixer->id == STI_MIXER_MAIN) { if (mixer->id == STI_MIXER_MAIN) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment