X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on broadwater.alporthouse.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=66.98.244.53; Received: from mail.surfanytime.net [78.156.70.19] by broadwater.alporthouse.com with POP3 (fetchmail-6.3.17) for (single-drop); Fri, 16 Jul 2010 19:49:08 +0100 (BST) Received: from relay.fireflyinternet.com (unverified [66.98.244.53]) by fireflyinternet.com (Firefly Internet SMTP) with ESMTP id 100076734-1500050 for ; Fri, 16 Jul 2010 19:48:20 +0100 Return-Path: Received-SPF: none (No spf1 record for (lists.freedesktop.org) ) client-ip=212.53.64.20; envelope-from=; Received: from coumta51.netbenefit.co.uk (unverified [212.53.64.20]) by relay.fireflyinternet.com (FireflyRelay1) with ESMTP id 75672913 for ; Fri, 16 Jul 2010 19:48:13 +0100 Return-Path: Received: from gabe.freedesktop.org ([131.252.210.177]:46396) by coumta51.netbenefit.co.uk with esmtp (NBT 4.61 23) id 1OZpxF-0006R4-7a for chris@chris-wilson.co.uk; Fri, 16 Jul 2010 19:48:17 +0100 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FED49ED99 for ; Fri, 16 Jul 2010 11:48:12 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 27C0F9E7CC for ; Fri, 16 Jul 2010 11:46:35 -0700 (PDT) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6GIkYlg006504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 16 Jul 2010 14:46:34 -0400 Received: from ihatethathostname.lab.bos.redhat.com (ihatethathostname.lab.bos.redhat.com [10.16.43.238]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6GIkWM6006106 for ; Fri, 16 Jul 2010 14:46:34 -0400 From: Adam Jackson To: intel-gfx@lists.freedesktop.org Date: Fri, 16 Jul 2010 14:46:30 -0400 Message-Id: <1279305992-19619-4-git-send-email-ajax@redhat.com> In-Reply-To: <1279305992-19619-1-git-send-email-ajax@redhat.com> References: <1279305992-19619-1-git-send-email-ajax@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Subject: [Intel-gfx] [PATCH 4/6] drm/i915/pch: Set transcoder sync polarity for DP based on actual mode X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: intel-gfx-bounces+chris=chris-wilson.co.uk@lists.freedesktop.org Errors-To: intel-gfx-bounces+chris=chris-wilson.co.uk@lists.freedesktop.org X-NB-Virus-Scan: virus-free X-Originally-To: chris@chris-wilson.co.uk X-NotAscii: charset=us-ascii X-Avast: Message is clean X-IP-stats: Incoming Last 0, First 1339, in=33161, out=0, spam=0 X-External-IP: 212.53.64.20 X-Rcpt-To: X-NotAscii: charset=us-ascii X-Probe: +OK skipped, from trusted ip X-IP-stats: Incoming Last 0, First 431, in=11789, out=0, spam=0 ip=212.53.64.20 Status: U X-UIDL: 183489 Signed-off-by: Adam Jackson --- drivers/gpu/drm/i915/intel_display.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index b1b742b..889f4ed 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -1983,9 +1983,12 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode) reg = I915_READ(trans_dp_ctl); reg &= ~TRANS_DP_PORT_SEL_MASK; reg = TRANS_DP_OUTPUT_ENABLE | - TRANS_DP_ENH_FRAMING | - TRANS_DP_VSYNC_ACTIVE_HIGH | - TRANS_DP_HSYNC_ACTIVE_HIGH; + TRANS_DP_ENH_FRAMING; + + if (crtc->mode.flags & DRM_MODE_FLAG_PHSYNC) + reg |= TRANS_DP_HSYNC_ACTIVE_HIGH; + if (crtc->mode.flags & DRM_MODE_FLAG_PVSYNC) + reg |= TRANS_DP_VSYNC_ACTIVE_HIGH; switch (intel_trans_dp_port_sel(crtc)) { case PCH_DP_B: -- 1.7.1.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx