From patchwork Sun Jan 11 05:01:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrique de Moraes Holschuh X-Patchwork-Id: 1751 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0B4vQGZ027900 for ; Sat, 10 Jan 2009 20:57:38 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750938AbZAKFB3 (ORCPT ); Sun, 11 Jan 2009 00:01:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751149AbZAKFB3 (ORCPT ); Sun, 11 Jan 2009 00:01:29 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:43346 "EHLO out1.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751016AbZAKFBU (ORCPT ); Sun, 11 Jan 2009 00:01:20 -0500 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id A81A720E915; Sun, 11 Jan 2009 00:01:19 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sun, 11 Jan 2009 00:01:19 -0500 X-Sasl-enc: HCnQyaTu/W2exG9tHFa4/rDUsHmN63kBYYfCJl+X1MWx 1231650079 Received: from khazad-dum.debian.net (unknown [201.82.166.239]) by mail.messagingengine.com (Postfix) with ESMTPSA id 59D4B206B6; Sun, 11 Jan 2009 00:01:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id A7D4C2821E; Sun, 11 Jan 2009 03:01:17 -0200 (BRST) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net Received: from khazad-dum.debian.net ([127.0.0.1]) by localhost (khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zV7lH82sTIgk; Sun, 11 Jan 2009 03:01:13 -0200 (BRST) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id 117262823C; Sun, 11 Jan 2009 03:01:11 -0200 (BRST) From: Henrique de Moraes Holschuh To: Len Brown Cc: ibm-acpi-devel@lists.sourceforge.net, linux-acpi@vger.kernel.org, Henrique de Moraes Holschuh Subject: [PATCH 12/13] ACPI: thinkpad-acpi: handle HKEY event 6030 Date: Sun, 11 Jan 2009 03:01:09 -0200 Message-Id: <1231650070-21722-13-git-send-email-hmh@hmh.eng.br> X-Mailer: git-send-email 1.5.6.5 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org HKEY event 0x6030 is a helper for Lenovo's Advanced Thermal Management Windows driver, which is, of course, completely undocumented. Silence any warnings about it being an unknown alarm, and report it unmodified for userspace. Signed-off-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 213219d..886a430 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -2702,6 +2702,12 @@ static bool hotkey_notify_thermal(const u32 hkey, "a sensor reports something is extremely hot!\n"); /* recommended action: immediate sleep/hibernate */ return true; + case 0x6030: + printk(TPACPI_INFO + "EC reports that Thermal Table has changed\n"); + /* recommended action: do nothing, we don't have + * Lenovo ATM information */ + return true; default: printk(TPACPI_ALERT "THERMAL ALERT: unknown thermal alarm received\n");