diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-10-07 19:01:08 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-08 04:20:54 -0400 |
commit | 51190667b3c6927356e594cdf6955980ff47bb16 (patch) | |
tree | 1920cac67f27220c457f671d7c6caa8a55958270 /drivers/gpu/drm/i915/intel_dp.c | |
parent | 4d9264615b98fe8015eca7d84a9862b1489c69d4 (diff) |
drm/i915/dp: correct eDP lane count and bpp
With the old check we'd never set lane_count or bpp to different values
on PCH attached eDP panels.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 1b736637e13e..714e553960fd 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -672,8 +672,10 @@ intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode, | |||
672 | intel_dp = enc_to_intel_dp(encoder); | 672 | intel_dp = enc_to_intel_dp(encoder); |
673 | if (intel_dp->base.type == INTEL_OUTPUT_DISPLAYPORT) { | 673 | if (intel_dp->base.type == INTEL_OUTPUT_DISPLAYPORT) { |
674 | lane_count = intel_dp->lane_count; | 674 | lane_count = intel_dp->lane_count; |
675 | if (is_pch_edp(intel_dp)) | 675 | break; |
676 | bpp = dev_priv->edp.bpp; | 676 | } else if (is_edp(intel_dp)) { |
677 | lane_count = dev_priv->edp.lanes; | ||
678 | bpp = dev_priv->edp.bpp; | ||
677 | break; | 679 | break; |
678 | } | 680 | } |
679 | } | 681 | } |