drm/i915: Only look for matching clocks for LVDS downclock
authorSean Paul <seanpaul@chromium.org>
Tue, 10 Jan 2012 23:09:36 +0000 (15:09 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Jan 2012 20:21:15 +0000 (21:21 +0100)
commitcec2f356d59d9e070413e5966a3c5a1af136d948
treec4f404a3a9a99d434b40801f12fde76e8890e88f
parent0b8ecdda1943a05c8e7896f0b5f1addf39269927
drm/i915: Only look for matching clocks for LVDS downclock

This patch enforces that the downclock clock source is the same as the preferred
clock source for LVDS. This fixes a bug where the driver chooses a downclock
clock source with a different P than the preferred mode clock source. This
happened even if the preferred clock source implemented an acceptable rate for
the downclock. The result of this bug is that downclock is disabled.

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