]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Ensure state->crtc is non-NULL for plane updates
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 1 Dec 2014 23:40:17 +0000 (15:40 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 6 Dec 2014 00:46:25 +0000 (01:46 +0100)
commit41ae591dc048865d7ceb95056ffe430561ce83a9
tree091dca936f7137e2b22fe3f992b29a27c0672a60
parentc3ad26de86ab99659231ebe5afb787682f80bee7
drm/i915: Ensure state->crtc is non-NULL for plane updates

When disabling a plane, it is legal to pass crtc = NULL.  Since planes
on Intel hardware are tied to a fixed CRTC, go ahead and set state->crtc
to the appropriate crtc in cases where it is passed to us as NULL.

In a future patch, we will start using the update handler for plane
disables, so this will help ensure we always have a non-NULL crtc
pointer to work with.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c