diff mbox

i915: fix ironlake edp panel setup.

Message ID 1277446900-16411-1-git-send-email-airlied@gmail.com (mailing list archive)
State Deferred, archived
Headers show

Commit Message

Dave Airlie June 25, 2010, 6:21 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 6094e42..80e122d 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -133,7 +133,7 @@  intel_dp_link_required(struct drm_device *dev,
 	struct intel_dp_priv *dp_priv = intel_encoder->dev_priv;
 
 	if (IS_eDP(intel_encoder) || IS_PCH_eDP(dp_priv))
-		return (pixel_clock * dev_priv->edp_bpp) / 8;
+		return (pixel_clock * ALIGN(dev_priv->edp_bpp, 8)) / 8;
 	else
 		return pixel_clock * 3;
 }