From: Paulo Zanoni Date: Sun, 3 Nov 2013 04:07:45 +0000 (-0700) Subject: drm/i915/bdw: check DPD on port D when setting the DDI buffers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77d8d00944dd5a0a2f4f67809819df927ee23030;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915/bdw: check DPD on port D when setting the DDI buffers Use the eDP values on platforms where port D is eDP. This doesn't affect Haswell since it uses the same DDI buffer values for eDP and DP. Reviewed-by: Art Runyan Signed-off-by: Paulo Zanoni Reviewed-by: Ben Widawsky Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 87c55c7cb096..1591576a6101 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -170,9 +170,14 @@ static void intel_prepare_ddi_buffers(struct drm_device *dev, enum port port) break; case PORT_B: case PORT_C: - case PORT_D: ddi_translations = ddi_translations_dp; break; + case PORT_D: + if (intel_dpd_is_edp(dev)) + ddi_translations = ddi_translations_edp; + else + ddi_translations = ddi_translations_dp; + break; case PORT_E: ddi_translations = ddi_translations_fdi; break;