From patchwork Mon Aug 26 02:19:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lan,Tianyu" X-Patchwork-Id: 2849363 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 41345BF546 for ; Mon, 26 Aug 2013 02:28:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D221201F3 for ; Mon, 26 Aug 2013 02:28:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FC66201EE for ; Mon, 26 Aug 2013 02:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755400Ab3HZC2S (ORCPT ); Sun, 25 Aug 2013 22:28:18 -0400 Received: from mga14.intel.com ([143.182.124.37]:62973 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755195Ab3HZC2R (ORCPT ); Sun, 25 Aug 2013 22:28:17 -0400 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga102.ch.intel.com with ESMTP; 25 Aug 2013 19:28:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,955,1367996400"; d="scan'208";a="286668325" Received: from lantianyu-ws.sh.intel.com (HELO localhost) ([10.239.37.18]) by AZSMGA002.ch.intel.com with ESMTP; 25 Aug 2013 19:28:15 -0700 From: tianyu.lan@intel.com To: rjw@sisk.pl, lenb@kernel.org Cc: Lan Tianyu , linux-acpi@vger.kernel.org, Daniele Esposti , stable@vger.kernel.org Subject: [PATCH] ACPI/EC: Add "ASUSTEK L4R" to quirk list in order to validate ecdt Date: Mon, 26 Aug 2013 10:19:18 +0800 Message-Id: <1377483558-16968-1-git-send-email-tianyu.lan@intel.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Lan Tianyu The ecdt of "ASUSTEK L4R" doesn't provide correct command and data io ports. The dsdt provides right info. So add this machine to quirk list to validate ecdt and use the EC info in the dsdt. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60765 Reported-and-tested-by: Daniele Esposti CC: Daniele Esposti CC: stable@vger.kernel.org Signed-off-by: Lan Tianyu --- drivers/acpi/ec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 7f900e5..ae33004 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -989,6 +989,10 @@ static struct dmi_system_id __initdata ec_dmi_table[] = { ec_skip_dsdt_scan, "HP Folio 13", { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13"),}, NULL}, + { + ec_validate_ecdt, "ASUS hardware", { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTek Computer Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "L4R"),}, NULL}, {}, };