From patchwork Mon Dec 6 07:04:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Rui X-Patchwork-Id: 377132 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB677R7x022157 for ; Mon, 6 Dec 2010 07:07:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320Ab0LFHHf (ORCPT ); Mon, 6 Dec 2010 02:07:35 -0500 Received: from mga14.intel.com ([143.182.124.37]:40836 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270Ab0LFHHf (ORCPT ); Mon, 6 Dec 2010 02:07:35 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 05 Dec 2010 23:07:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,305,1288594800"; d="scan'208";a="357497850" Received: from rui.sh.intel.com (HELO [10.239.36.7]) ([10.239.36.7]) by azsmga001.ch.intel.com with ESMTP; 05 Dec 2010 23:07:33 -0800 Subject: [PATCH 5/7] ACPI video: check cap._DDC flag before getting EDID From: Zhang Rui To: "Brown, Len" Cc: "linux-acpi@vger.kernel.org" , Matthew Garrett , "Zhang, Rui" Date: Mon, 06 Dec 2010 15:04:24 +0800 Message-ID: <1291619064.19296.579.camel@rui> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 06 Dec 2010 07:07:35 +0000 (UTC) Index: linux-2.6/drivers/acpi/video.c =================================================================== --- linux-2.6.orig/drivers/acpi/video.c +++ linux-2.6/drivers/acpi/video.c @@ -1275,6 +1275,9 @@ int acpi_video_get_edid(struct acpi_devi if (!video_device) continue; + if (!video_device->cap._DDC) + continue; + if (type) { switch (type) { case ACPI_VIDEO_DISPLAY_CRT: