drm/i915/crt: convert to encoder disable/enable
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 1 Jul 2012 12:58:27 +0000 (14:58 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 05:54:27 +0000 (07:54 +0200)
commit2124604b09b1f405d438815d797530c43269cc58
tree5dc57d86aac0e1281adf94446efaafb95b2decac
parente8cb455876fa8f67c6aba394d0a14b697bf04cc3
drm/i915/crt: convert to encoder disable/enable

CRT is the first output which can be cloned, hence we cannot (yet)
move the dpms handling over to disable/enable. This requires some more
smarts in intel_crtc_dpms first to set the display pipe status
depening upon encoder->connectors_active of all connected encoders.

Because that will happen in a separate step, don't touch the dpms
functions, yet.

v2: Be careful about clearing the _DISABLE flags for intermediate dpms
modes - otherwise we might clobber the crt state when another (cloned)
connector gets enabled.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_crt.c