From patchwork Tue Aug 28 22:06:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 1382841 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 31C26DF283 for ; Tue, 28 Aug 2012 22:19:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 051EB9E9AF for ; Tue, 28 Aug 2012 15:19:14 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yx0-f177.google.com (mail-yx0-f177.google.com [209.85.213.177]) by gabe.freedesktop.org (Postfix) with ESMTP id A13D99EF60 for ; Tue, 28 Aug 2012 15:07:50 -0700 (PDT) Received: by mail-yx0-f177.google.com with SMTP id q9so1203648yen.36 for ; Tue, 28 Aug 2012 15:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=ajDgAwaI0sqVGTxcDO9mX94L5i1haerhsKi49Pl5HNM=; b=YqXd37Wsai0njO5m0ip33NzrRvMYPMqlqiEdpBZ6cbbcT48ZnNC+RagGG5ijt0jBz+ wqQ/RcZLZIRMQdwnKQTymdygvPDHHIXhrexy8haRTUO6boQJnb6Yr5CB4LoH53TJZz6L RFStKhYLm0I5zpd9O5K+EEby0lH+dwNiBhe1ze5ewno6rKwDzAkma8Q6kEGg/j+xdgIv hgbMiUHVn3R6cNVhoq+avizFWgrB8Qft0G3I/UVmtaDTKDaRTuFpsJhD/J4ba/zPEbbZ Azy34ycCVGG5BPQcuFGLx5KQjZFYmbAEcIyuOpZHCCCMbitzx+ex+eE7XGqDPTcdJYyT Zwcw== Received: by 10.236.153.39 with SMTP id e27mr15613716yhk.130.1346191670583; Tue, 28 Aug 2012 15:07:50 -0700 (PDT) Received: from vicky.domain.invalid (189.114.178.236.dynamic.adsl.gvt.net.br. [189.114.178.236]) by mx.google.com with ESMTPS id z3sm4434172anj.20.2012.08.28.15.07.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Aug 2012 15:07:50 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Tue, 28 Aug 2012 19:06:47 -0300 Message-Id: <1346191621-12996-17-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1346191621-12996-1-git-send-email-przanoni@gmail.com> References: <1346191621-12996-1-git-send-email-przanoni@gmail.com> Cc: Paulo Zanoni Subject: [Intel-gfx] [RFC 16/30] drm/i915: disable DDI on intel_dp_link_down X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org From: Paulo Zanoni It requires a full disable of everything. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_dp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 3c6b94c..e59d676 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -2004,6 +2004,11 @@ intel_dp_link_down(struct intel_dp *intel_dp) struct drm_i915_private *dev_priv = dev->dev_private; uint32_t DP = intel_dp->DP; + if (IS_HASWELL(dev)) { + intel_ddi_disable(&intel_dp->base.base); + return; + } + if ((I915_READ(intel_dp->output_reg) & DP_PORT_EN) == 0) return;