drm/i915: disable PCH ports if needed when disabling a CRTC
authorKeng-Yu Lin <keng-yu.lin@canonical.com>
Wed, 22 Jun 2011 01:49:34 +0000 (09:49 +0800)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:45 +0000 (12:20 -0500)
commitbbeaf8811ba070fd186dfcabc957044c3a1149ac
tree97ec1f5f238859285683d9d13b9c4d7290997dcf
parent2c458726dc7a0f1b63520181678ad9c4e0f67d2c
drm/i915: disable PCH ports if needed when disabling a CRTC

BugLink: http://bugs.launchpad.net/bugs/791752

Disable any PCH ports associated with a pipe when disabling it.  This
should prevent transcoder disable failures due to ports still being on.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[ickle: introduce *_PIPE_ENABLED() macro]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

backported from commit 47a05eca72991039e788b25232061f9c9df9ec23
Signed-off-by: Keng-Yu Lin <keng-yu.lin@canonical.com>
Acked-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c