]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't try to disable plane if it's already disabled
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Aug 2013 10:30:23 +0000 (13:30 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 12:11:13 +0000 (14:11 +0200)
commit76ca80f92e8502bba6bcbf1503a25078e79ab35b
tree9924ce72f21af7d15ec95adb3054d9d1680844e6
parentf588ee0a40722cce6c8f08f6794e5c513be9f3ef
drm/i915: Don't try to disable plane if it's already disabled

Check plane->fb in intel_disable_plane() to determine if the plane
is already disabled.

If the plane has an fb, then it must also have a crtc, so we can drop
the plane->crtc check and just call intel_enable_primary() directly.

v2: WARN and bail if the plane doesn't have a crtc when it should

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c