path: root/drivers/gpu/drm/arm
diff options
authorLiu Ying <>2016-08-29 17:12:03 +0800
committerDaniel Vetter <>2016-08-29 11:29:37 +0200
commit2b58e98d42af854037439f51bd89f83dbfa8e30d (patch)
tree7b17e1a7cb54721176eb0c1ed80eb4f1fd60b653 /drivers/gpu/drm/arm
parent28500291c29ae2174eb0322e839cc3204d06b963 (diff)
drm/atomic-helper: Add NO_DISABLE_AFTER_MODESET flag support for plane commit
Drivers may set the NO_DISABLE_AFTER_MODESET flag in the 'flags' parameter of the helper drm_atomic_helper_commit_planes() if the relevant display controllers(e.g., IPUv3 for imx-drm) require to disable a CRTC's planes when the CRTC is disabled. The helper would skip the ->atomic_disable call for a plane if the CRTC of the old plane state needs a modesetting operation. Of course, the drivers need to disable the planes in their CRTC disable callbacks since no one else would do that. Suggested-by: Daniel Vetter <> Cc: Philipp Zabel <> Cc: David Airlie <> Cc: Russell King <> Cc: Peter Senna Tschudin <> Cc: Lucas Stach <> Signed-off-by: Liu Ying <> Signed-off-by: Daniel Vetter <> Link:
Diffstat (limited to 'drivers/gpu/drm/arm')
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c
index 82171d223f2d..c383d724527f 100644
--- a/drivers/gpu/drm/arm/malidp_drv.c
+++ b/drivers/gpu/drm/arm/malidp_drv.c
@@ -91,7 +91,8 @@ static void malidp_atomic_commit_tail(struct drm_atomic_state *state)
drm_atomic_helper_commit_modeset_disables(drm, state);
drm_atomic_helper_commit_modeset_enables(drm, state);
- drm_atomic_helper_commit_planes(drm, state, true);
+ drm_atomic_helper_commit_planes(drm, state,