From patchwork Wed Nov 11 01:21:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenyu Wang X-Patchwork-Id: 59226 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAB1LEsl029220 for ; Wed, 11 Nov 2009 01:21:14 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BA79F9F025; Tue, 10 Nov 2009 17:21:13 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from fmsmga102.fm.intel.com (mga10.intel.com [192.55.52.92]) by gabe.freedesktop.org (Postfix) with ESMTP id 210769EDD0 for ; Tue, 10 Nov 2009 17:21:11 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 10 Nov 2009 17:17:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,719,1249282800"; d="asc'?scan'208";a="745757922" Received: from zhen-devel.sh.intel.com (HELO zhen-devel) ([10.239.13.20]) by fmsmga001.fm.intel.com with ESMTP; 10 Nov 2009 17:27:38 -0800 Date: Wed, 11 Nov 2009 09:21:10 +0800 From: Zhenyu Wang To: Emmanuel Message-ID: <20091111012110.GA5540@zhen-devel.sh.intel.com> Mail-Followup-To: Emmanuel , "intel-gfx@lists.freedesktop.org" References: <4AF98BAC.4070103@gmail.com> MIME-Version: 1.0 In-Reply-To: <4AF98BAC.4070103@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "intel-gfx@lists.freedesktop.org" Subject: Re: [Intel-gfx] [PATCH] [resend] bug in connector connection status for G33 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: Zhenyu Wang 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 diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index 212e227..e505144 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c @@ -262,8 +262,8 @@ static bool intel_crt_detect_hotplug(struct drm_connector *connector) } while (time_after(timeout, jiffies)); } - if ((I915_READ(PORT_HOTPLUG_STAT) & CRT_HOTPLUG_MONITOR_MASK) == - CRT_HOTPLUG_MONITOR_COLOR) + if ((I915_READ(PORT_HOTPLUG_STAT) & CRT_HOTPLUG_MONITOR_MASK) != + CRT_HOTPLUG_MONITOR_NONE) return true; return false;