drm/i915: the PCH reference clocks are global, so don't clobber unconditionally
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Feb 2011 21:57:30 +0000 (13:57 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Feb 2011 12:06:14 +0000 (12:06 +0000)
commitdcbe6f2b3d136995915e2f9ecc7d4f3b28f47b6c
treec127bdd87bdcb712d11d12cd44c97f343cafc8dc
parent291906f11c90467ce552089ea9f7b393f41a87bb
drm/i915: the PCH reference clocks are global, so don't clobber unconditionally

The PCH can drive several reference clocks simultaneously, and needs to
with multiple display configurations.  So we can't just clobber the
existing state everytime we set a mode, we need to take into account
what the other CRTCs are doing at the time.

Doing so fixes an issue where you'd lose the LVDS display at boot if you
had an LVDS+DP config.

[updated: init bools and check CRTC status correctly]
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c