From: Vandana Kannan Date: Fri, 27 Mar 2015 12:19:09 +0000 (+0200) Subject: drm/i915/bxt: Increase DDI buf idle timeout X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3449ca859a2ea8466b58794b256892508ea0c1b0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915/bxt: Increase DDI buf idle timeout For BXT, DDI buf idle timeout delay needs to be increased to 16us. Since this is a timeout value and we return as soon as the condition is realized, no penalty incurred for other platforms. v2: - remove TIMEOUT macro used only at a single place (Daniel) Suggested-by: Satheeshakrishna M Cc: Satheeshakrishna M Cc: Damien Lespiau Signed-off-by: Vandana Kannan Signed-off-by: Damien Lespiau (v1) Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 47b9307da24b..1c9d439e864a 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -322,7 +322,7 @@ static void intel_wait_ddi_buf_idle(struct drm_i915_private *dev_priv, uint32_t reg = DDI_BUF_CTL(port); int i; - for (i = 0; i < 8; i++) { + for (i = 0; i < 16; i++) { udelay(1); if (I915_READ(reg) & DDI_BUF_IS_IDLE) return;