drm/atomic: Do not unset crtc when an encoder is stolen
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 7 Jan 2016 09:59:21 +0000 (10:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Feb 2016 10:21:06 +0000 (11:21 +0100)
commit97a8df90875f72ba3b4c3320759fd93cea743261
tree0dc27fb9700f40b641cfafb96b114d90622d7aa9
parent7811b1240d816cd92cbd70c5a4254346493546f0
drm/atomic: Do not unset crtc when an encoder is stolen

While we steal the encoder away from the connector the connector may
be updated to use a different encoder.

Without this change if 2 connectors swap encoders one of them will
end up without a crtc.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1452160762-30487-5-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c