From patchwork Tue Jan 21 16:38:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 3519031 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1F0C79F1C3 for ; Tue, 21 Jan 2014 16:39:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0DA6520117 for ; Tue, 21 Jan 2014 16:39:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 064FD200EC for ; Tue, 21 Jan 2014 16:39:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7CC4FFA235; Tue, 21 Jan 2014 08:39:24 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by gabe.freedesktop.org (Postfix) with ESMTP id CA6B4FA788 for ; Tue, 21 Jan 2014 08:39:11 -0800 (PST) Received: by mail-pd0-f179.google.com with SMTP id q10so6376594pdj.10 for ; Tue, 21 Jan 2014 08:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=nrCvcvy7uzkFJ4Ek0ZKDNvuNgbAEvKg1I+OAPnWXy9s=; b=JCpOl2xuE/PcdFsTv+xH3/YgZs314J7vaJh8X7JOBNmV0KDgPJrz/NlMYWy2O/Fu4j XW+g28zzfHfUeCUh9aKJ+U43ygfOOwYyvjP4sRiieVi7a6jk0igZEVNLE3H8BZD53bTk /QKeUEjcCgKVXckCUB1zGAH+VxwF9OUVEVBOy0/md42tdza3nv4SHF2HQ05NJVMX1WP5 ByYa1oLytwcZMfJKBi+XoAYdkWdd0e681MZh56khqP96XxHi+UK3nyljInWwKgt37mSJ zd10BsYqkH2CRNcjtfUiOjOXEakSia8F0JvMQdNuuP19ld6jJtYj4O286KwKesGUsoP0 mQWQ== X-Received: by 10.66.148.2 with SMTP id to2mr10242249pab.146.1390322351717; Tue, 21 Jan 2014 08:39:11 -0800 (PST) Received: from panzer.ph.cox.net (ip70-162-72-129.ph.ph.cox.net. [70.162.72.129]) by mx.google.com with ESMTPSA id bz4sm13907851pbb.12.2014.01.21.08.39.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 08:39:10 -0800 (PST) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Tue, 21 Jan 2014 09:38:50 -0700 Message-Id: <1390322330-6486-1-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Intel-gfx] [PATCH] drm/i915: (VLV2) Fix the hotplug detection bits 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@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These bits are in reverse order in the header from those defined in the specification. Change the bit positions for ports B and D to correctly match the spec. --- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 10ecf90..2d77b51 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -2083,9 +2083,9 @@ * Please check the detailed lore in the commit message for for experimental * evidence. */ -#define PORTD_HOTPLUG_LIVE_STATUS (1 << 29) +#define PORTD_HOTPLUG_LIVE_STATUS (1 << 27) #define PORTC_HOTPLUG_LIVE_STATUS (1 << 28) -#define PORTB_HOTPLUG_LIVE_STATUS (1 << 27) +#define PORTB_HOTPLUG_LIVE_STATUS (1 << 29) #define PORTD_HOTPLUG_INT_STATUS (3 << 21) #define PORTC_HOTPLUG_INT_STATUS (3 << 19) #define PORTB_HOTPLUG_INT_STATUS (3 << 17)