MLK-22653-2 drm/imx: dpu: crtc: Do not send out bogus vblank event in ->atomic_disable()
authorLiu Ying <victor.liu@nxp.com>
Fri, 20 Sep 2019 09:42:05 +0000 (17:42 +0800)
committerLiu Ying <victor.liu@nxp.com>
Thu, 26 Sep 2019 01:44:15 +0000 (09:44 +0800)
commitac25a72dcba88acbb7b5cb2087838ef692c4a115
treeaf53a37e1e3f993bad081d8eb0269d71bd867705
parent1a5f4f4efe09ae8b3575d30e52f59e7293bccd8d
MLK-22653-2 drm/imx: dpu: crtc: Do not send out bogus vblank event in ->atomic_disable()

When a full modeset is needed, the CRTC could be totally disabled or
enabled/re-enabled after the modeset.  If it's re-enabled, a vblank
event would be sent during the CRTC enablement procedure.  So, a bogus
event should be killed in the ->atomic_disable() callback.

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