Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4517cf9b authored by Xinliang Liu's avatar Xinliang Liu Committed by Daniel Vetter
Browse files

drm/hisilicon: Fix ADE vblank on/off handling



Vblank turn on should be called in crtc's enable callback.
And turn off called in crtc's disable callback.

Thanks to Daniel Vetter, this bug is reported by him.

Reported-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarXinliang Liu <xinliang.liu@linaro.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160630092300.141864-1-xinliang.liu@linaro.org
parent da82ee99
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -487,6 +487,7 @@ static void ade_crtc_enable(struct drm_crtc *crtc)
	ade_set_medianoc_qos(acrtc);
	ade_display_enable(acrtc);
	ade_dump_regs(ctx->base);
	drm_crtc_vblank_on(crtc);
	acrtc->enable = true;
}

@@ -498,6 +499,7 @@ static void ade_crtc_disable(struct drm_crtc *crtc)
	if (!acrtc->enable)
		return;

	drm_crtc_vblank_off(crtc);
	ade_power_down(ctx);
	acrtc->enable = false;
}