From: Jesse Barnes Subject: [PATCH 1/5] drm/i915: remove PP_ON/OFF waits from LVDS code Date: Thu, 22 Sep 2011 11:15:57 +0530 Message-ID: <1316670361-18412-2-git-send-email-jbarnes@virtuousgeek.org> References: <1316670361-18412-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy7-pub.bluehost.com (oproxy7-pub.bluehost.com [67.222.55.9]) by gabe.freedesktop.org (Postfix) with SMTP id B34309E9F3 for ; Wed, 21 Sep 2011 22:46:16 -0700 (PDT) In-Reply-To: <1316670361-18412-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org These aren't actually needed for correct functionality and can speed up boot and resume a bit. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_lvds.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 8b521a2..8ef9a45 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c @@ -104,8 +104,6 @@ static void intel_lvds_enable(struct intel_lvds *intel_lvds) I915_WRITE(ctl_reg, I915_READ(ctl_reg) | POWER_TARGET_ON); POSTING_READ(lvds_reg); - if (wait_for((I915_READ(stat_reg) & PP_ON) != 0, 1000)) - DRM_ERROR("timed out waiting for panel to power on\n"); intel_panel_enable_backlight(dev); } @@ -129,8 +127,6 @@ static void intel_lvds_disable(struct intel_lvds *intel_lvds) intel_panel_disable_backlight(dev); I915_WRITE(ctl_reg, I915_READ(ctl_reg) & ~POWER_TARGET_ON); - if (wait_for((I915_READ(stat_reg) & PP_ON) == 0, 1000)) - DRM_ERROR("timed out waiting for panel to power off\n"); if (intel_lvds->pfit_control) { I915_WRITE(PFIT_CONTROL, 0); -- 1.7.4.1