Add patches accepted for 2.6.29-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.29-rc2 / 0013-ACPI-thinkpad-acpi-handle-HKEY-event-6030.patch
blob758756e5dbb6c7b062a8a97f63c0b321ab73dafb
1 From 54926ce8d2db7ebcbc4b80aae2cec571cd793e46 Mon Sep 17 00:00:00 2001
2 From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
3 Date: Sun, 11 Jan 2009 03:01:09 -0200
4 Subject: ACPI: thinkpad-acpi: handle HKEY event 6030
6 HKEY event 0x6030 is a helper for Lenovo's Advanced Thermal Management
7 Windows driver, which is, of course, completely undocumented.
9 Silence any warnings about it being an unknown alarm, and report it
10 unmodified for userspace.
12 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
13 Signed-off-by: Len Brown <len.brown@intel.com>
14 ---
15 drivers/platform/x86/thinkpad_acpi.c | 6 ++++++
16 1 files changed, 6 insertions(+), 0 deletions(-)
18 diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
19 index 213219d..886a430 100644
20 --- a/drivers/platform/x86/thinkpad_acpi.c
21 +++ b/drivers/platform/x86/thinkpad_acpi.c
22 @@ -2702,6 +2702,12 @@ static bool hotkey_notify_thermal(const u32 hkey,
23 "a sensor reports something is extremely hot!\n");
24 /* recommended action: immediate sleep/hibernate */
25 return true;
26 + case 0x6030:
27 + printk(TPACPI_INFO
28 + "EC reports that Thermal Table has changed\n");
29 + /* recommended action: do nothing, we don't have
30 + * Lenovo ATM information */
31 + return true;
32 default:
33 printk(TPACPI_ALERT
34 "THERMAL ALERT: unknown thermal alarm received\n");
35 --
36 1.5.6.5