]> git.baikalelectronics.ru Git - kernel.git/commit
drm: mali-dp: Call drm_crtc_vblank_reset on device init
authorAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Mon, 16 Jul 2018 10:07:07 +0000 (11:07 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 21 Sep 2018 09:54:56 +0000 (10:54 +0100)
commitce14f3f89567732f28d0b5b107a1383e0b917f57
treed065c1a9b215049604004986fae1656df1ea7751
parentacb3faa3dc6436ced924d1f68c2f99fe6e39405a
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>
drivers/gpu/drm/arm/malidp_drv.c