drm/atomic-helper: Add atomic_disable CRTC helper callback
authorLiu Ying <gnuiyl@gmail.com>
Fri, 26 Aug 2016 07:30:38 +0000 (15:30 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 29 Aug 2016 08:21:52 +0000 (10:21 +0200)
commitc9ac8b4c5caf493fba8c43f1bd02f687ffccb429
treecaf90eb60ad9fbb9d71b05107f2d027c963ca52d
parent315486c665333a49be20643c9137d9641f32e2b7
drm/atomic-helper: Add atomic_disable CRTC helper callback

Some display controllers need plane(s) to be disabled together with
the relevant CRTC, e.g., the IPUv3 display controller for imx-drm.
This patch adds atomic_disable CRTC helper callback so that
old_crtc_state(as a parameter of the callback) could be used
to get the active plane(s) of the old CRTC state for disable operation.

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Peter Senna Tschudin <peter.senna@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1472196644-30563-2-git-send-email-gnuiyl@gmail.com
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_modeset_helper_vtables.h