drm/atomic: add commit_planes_on_crtc helper
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 19 May 2015 14:41:01 +0000 (16:41 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 21 May 2015 08:28:39 +0000 (10:28 +0200)
commitde28d0212a3ea7b92a9795cd0e5bfc7d15214677
tree7104defccf9b6fbbc597d841f948efd57b8678db
parentbdcddf95e82b1c4e370fc1196b1f4f50f775dab4
drm/atomic: add commit_planes_on_crtc helper

drm_atomic_helper_commit_planes calls all atomic_begin's first,
then updates all planes, finally calling atomic_flush.

Some drivers may want to things like disabling irq's
from their atomic_begin, in which case a second call to atomic_begin
will splat. By using commit_planes_on_crtc on each crtc in the
atomic state they'll evade that issue.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[danvet: Extend kerneldoc a bit as discussed with Maarten on irc.]
[danvet: Squash in fixup to check for crtc_funcs in all places.
Reported by Dan Carpenter.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h