aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>2018-07-16 06:07:07 -0400
committerLiviu Dudau <Liviu.Dudau@arm.com>2018-10-02 06:54:26 -0400
commitcabce6343fdff516f954c367d0d57dd566244942 (patch)
tree1a7428ae9c446da75ccdca0e65d008dfeb6ebbda
parent87c2ee740c07f1edae9eec8bc45cb9b32a68f323 (diff)
drm: mali-dp: Call drm_crtc_vblank_reset on device init
Currently, if userspace calls drm_wait_vblank before the crtc is activated the crtc vblank_enable hook is called, which in case of malidp driver triggers some warninngs. This happens because on device init we don't inform the drm core about the vblank state by calling drm_crtc_vblank_on/off/reset which together with drm_vblank_get have some magic that prevents calling drm_vblank_enable when crtc is off. Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
-rw-r--r--drivers/gpu/drm/arm/malidp_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c
index 3171ffaadd77..34eec1a22428 100644
--- a/drivers/gpu/drm/arm/malidp_drv.c
+++ b/drivers/gpu/drm/arm/malidp_drv.c
@@ -752,6 +752,7 @@ static int malidp_bind(struct device *dev)
752 drm->irq_enabled = true; 752 drm->irq_enabled = true;
753 753
754 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); 754 ret = drm_vblank_init(drm, drm->mode_config.num_crtc);
755 drm_crtc_vblank_reset(&malidp->crtc);
755 if (ret < 0) { 756 if (ret < 0) {
756 DRM_ERROR("failed to initialise vblank\n"); 757 DRM_ERROR("failed to initialise vblank\n");
757 goto vblank_fail; 758 goto vblank_fail;