MLK-22653-1 drm/imx: dpu: crtc: Send vblank event after drm_crtc_vblank_off() in...
authorLiu Ying <victor.liu@nxp.com>
Fri, 20 Sep 2019 09:39:25 +0000 (17:39 +0800)
committerLiu Ying <victor.liu@nxp.com>
Thu, 26 Sep 2019 01:44:14 +0000 (09:44 +0800)
commit1a5f4f4efe09ae8b3575d30e52f59e7293bccd8d
treecf759ca4c3284c5fd02248b6382cf0611c95916c
parenteac97084e6ed33cf26b3ae572eb5aba2973e8742
MLK-22653-1 drm/imx: dpu: crtc: Send vblank event after drm_crtc_vblank_off() in ->atomic_disable()

The Kdoc for the event entry of struct drm_crtc_state mentions that the
simplest way to send vblank event when a CRTC is being disabled is that
calling drm_crtc_send_vblank_event() somewhen after drm_crtc_vblank_off()
has been called.  This patch takes the way mentioned above to send vblank
event in the ->atomic_disable() callback.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 5b1a8127d98daf13d9f9891dfad2589f339b63d5)
drivers/gpu/drm/imx/dpu/dpu-crtc.c