]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5955e37cdda3e9455efb29c8bed09b121f572b6e
treec127bdd87bdcb712d11d12cd44c97f343cafc8dc
parent6fca73882dbc680d000f09a364ef46aedf2d0c4a
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