From patchwork Tue Oct 9 05:54:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1568231 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B48784025F for ; Tue, 9 Oct 2012 06:04:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753418Ab2JIGEC (ORCPT ); Tue, 9 Oct 2012 02:04:02 -0400 Received: from mail-qa0-f53.google.com ([209.85.216.53]:58217 "EHLO mail-qa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753321Ab2JIGDr (ORCPT ); Tue, 9 Oct 2012 02:03:47 -0400 Received: by mail-qa0-f53.google.com with SMTP id s11so2638464qaa.19 for ; Mon, 08 Oct 2012 23:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:reply-to:organization; bh=AJFqHuMUHSAtYFGJCteGyzxeqMF4qxRxRBiXMRsOo80=; b=0M56Z8SvIlfe1vOoU8S8Fk8T/H8+lJvZmc9ZaPx5NdxdF6XUWZPSlK00321MoGyPWS x/jndwhyt5RWanwToF7BgEV4eIuM4XMe+T24SMQcoC+En61ubh8atyJYfrpe1QM5HJcw dBMJ2mqiE49N5K/D0rcXb0+2cs2Chfk+fYA5MDS+QEIWqC8p2xNK0hT4r5hujlWzXKYU /jYanJAouYsBN0ycR6DIizAawk132DszjyUVFdWyhXVhNWsL0931HOvSTTBiF3QGBgfS f5fRpTYsUg1PbZyF8g+9F17NZOC91Z/fDp5p8frf+kUAxYKmIeyD9iLsLMgHR0VBguwf hqNQ== Received: by 10.49.29.194 with SMTP id m2mr47244593qeh.61.1349762626508; Mon, 08 Oct 2012 23:03:46 -0700 (PDT) Received: from x980.localdomain6 (pool-74-104-146-186.bstnma.fios.verizon.net. [74.104.146.186]) by mx.google.com with ESMTPS id ck11sm20206037qab.17.2012.10.08.23.03.45 (version=SSLv3 cipher=OTHER); Mon, 08 Oct 2012 23:03:45 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Feng Tang , Len Brown , stable@vger.kernel.org Subject: [PATCH 27/30] ACPI: EC: Add a quirk for CLEVO M720T/M730T laptop Date: Tue, 9 Oct 2012 01:54:17 -0400 Message-Id: <67bfa9b60bd689601554526d144b21d529f78a09.1349761836.git.len.brown@intel.com> X-Mailer: git-send-email 1.8.0.rc1 In-Reply-To: <1349762060-25334-1-git-send-email-lenb@kernel.org> References: <1349762060-25334-1-git-send-email-lenb@kernel.org> In-Reply-To: References: Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Feng Tang By enlarging the GPE storm threshold back to 20, that laptop's EC works fine with interrupt mode instead of polling mode. https://bugzilla.kernel.org/show_bug.cgi?id=45151 Reported-and-Tested-by: Francesco Signed-off-by: Feng Tang Signed-off-by: Len Brown cc: stable@vger.kernel.org --- drivers/acpi/ec.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 615264c..a51df96 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -930,6 +930,17 @@ static int ec_flag_msi(const struct dmi_system_id *id) return 0; } +/* + * Clevo M720 notebook actually works ok with IRQ mode, if we lifted + * the GPE storm threshold back to 20 + */ +static int ec_enlarge_storm_threshold(const struct dmi_system_id *id) +{ + pr_debug("Setting the EC GPE storm threshold to 20\n"); + ec_storm_threshold = 20; + return 0; +} + static struct dmi_system_id __initdata ec_dmi_table[] = { { ec_skip_dsdt_scan, "Compal JFL92", { @@ -961,10 +972,13 @@ static struct dmi_system_id __initdata ec_dmi_table[] = { { ec_validate_ecdt, "ASUS hardware", { DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer Inc.") }, NULL}, + { + ec_enlarge_storm_threshold, "CLEVO hardware", { + DMI_MATCH(DMI_SYS_VENDOR, "CLEVO Co."), + DMI_MATCH(DMI_PRODUCT_NAME, "M720T/M730T"),}, NULL}, {}, }; - int __init acpi_ec_ecdt_probe(void) { acpi_status status;