[ibm-acpi-devel] [PATCH 11/13] ACPI: thinkpad-acpi: clean-up fan subdriver quirk

2009-01-10 Thread Henrique de Moraes Holschuh
Better document the Unitialized HFSP quirk, and modularize it a bit. This makes the code flow easier to read and reduces LOC. Apply the Unitialized HFSP closer to the source (i.e. inside the get_fan_status()), this fixes a harmless buglet where at driver init with the quirk active, the user could

[ibm-acpi-devel] [PATCH 09/13] ACPI: thinkpad-acpi: handle HKEY thermal and battery alarms

2009-01-10 Thread Henrique de Moraes Holschuh
Handle some HKEY events that are actually firmware alarms. For now, we do the simple thing: log specific messages to the log and let the thinkpad-specific event pass to userspace. In the future, these events will be migrated to generic notifications and subsystems. These alarms are NOT available

[ibm-acpi-devel] [PATCH 12/13] ACPI: thinkpad-acpi: handle HKEY event 6030

2009-01-10 Thread Henrique de Moraes Holschuh
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/

[ibm-acpi-devel] [PATCH 08/13] ACPI: thinkpad-acpi: clean up hotkey_notify()

2009-01-10 Thread Henrique de Moraes Holschuh
Clean up the hotkey_notify() handler, which handles the HKEY notifications from the ACPI firmware. It was getting too long and deep. No functional changes. Signed-off-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c | 174 +- 1 files cha

[ibm-acpi-devel] [PATCH 10/13] ACPI: thinkpad-acpi: start the event hunt season

2009-01-10 Thread Henrique de Moraes Holschuh
Ask users to tell us about any unhandled events they find. Signed-off-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c i

[ibm-acpi-devel] [PATCH 04/13] ACPI: thinkpad-acpi: resume with radios disabled

2009-01-10 Thread Henrique de Moraes Holschuh
Instruct the firmware to not enable the radios when resuming. This is safer, and the rfkill core will take care to manually enable any radios that need to be enabled. Signed-off-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c | 66 - 1

[ibm-acpi-devel] [PATCH 07/13] ACPI: thinkpad-acpi: use killable instead of interruptible mutexes

2009-01-10 Thread Henrique de Moraes Holschuh
Unfortunately, POSIX in all of its braindamage, do not state that userspace has to deal with EINTR in read/write and friends... so, lesser code just doesn't. Switch from *_interruptible to *_killable on the sysfs- and procfs-related mutexes. This closes this possible can of worms. Signed-off-by:

[ibm-acpi-devel] [PATCH 06/13] ACPI: thinkpad-acpi: add UWB radio support

2009-01-10 Thread Henrique de Moraes Holschuh
Add rfkill support for USB UWB radio devices on very recent ThinkPad laptop models. The new subdriver is moslty a trimmed down copy of the wwan subdriver. Signed-off-by: Henrique de Moraes Holschuh Cc: Ivo van Doorn --- Documentation/laptops/thinkpad-acpi.txt | 18 +++ drivers/platform/x86/t

[ibm-acpi-devel] [PATCH 13/13] ACPI: thinkpad-acpi: bump up version to 0.22

2009-01-10 Thread Henrique de Moraes Holschuh
It is about time to bump up the version. Features added since 0.21: fan suspend/resume support, preserve radio state across power off (for some radio types), built-in UWB radio rfkill support and thermal alarm events support. Signed-off-by: Henrique de Moraes Holschuh --- Documentation/laptops

[ibm-acpi-devel] [GIT PATCH][REPOST] thinkpad-acpi queue for 2.6.29

2009-01-10 Thread Henrique de Moraes Holschuh
Len, This is a repost of the thinkpad-acpi queue. I sent it to you on 2008-11-22, but apparently it fell through the cracks... The patchset was rebased to apply on top of 2.6.29-rc1. Patches 1, 12 and 13 are new, but they are trivial. Please, if at all possible, send it to Linus for 2.6.29 mer

[ibm-acpi-devel] [PATCH 05/13] ACPI: thinkpad-acpi: preserve radio state across shutdown

2009-01-10 Thread Henrique de Moraes Holschuh
Store in firmware NVRAM the radio state on machine shutdown for WWAN and bluetooth. Also, try to set the initial boot state of these radios as the rfkill default state for their respective classes. Signed-off-by: Henrique de Moraes Holschuh Cc: Ivo van Doorn --- drivers/platform/x86/thinkpad_a

[ibm-acpi-devel] [PATCH 01/13] ACPI: thinkpad-acpi: update documents for the new location

2009-01-10 Thread Henrique de Moraes Holschuh
Update documentation to reflect the new location of the thinkpad-acpi driver. Signed-off-by: Henrique de Moraes Holschuh --- Documentation/laptops/thinkpad-acpi.txt |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Documentation/laptops/thinkpad-acpi.txt b/Documentation

[ibm-acpi-devel] [PATCH 02/13] ACPI: thinkpad-acpi: struct device - replace bus_id with dev_name(), dev_set_name()

2009-01-10 Thread Henrique de Moraes Holschuh
From: Kay Sievers Signed-off-by: Kay Sievers Acked-by: Greg Kroah-Hartman Acked-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86

[ibm-acpi-devel] [PATCH 03/13] ACPI: thinkpad-acpi: debug facility to emulate the rf switches

2009-01-10 Thread Henrique de Moraes Holschuh
This code is required to keep the thinkpad-acpi maintainer sane, and it is disabled by default. Add a debug facility to simulate an rfkill hardware rocker switch, a bluetooth rfkill soft-switch, a WWAN rfkill soft-switch on thinkpads. The simulated switches obviously do not kill any radios in har

[ibm-acpi-devel] thinkpad-acpi driver changed locations on kernel 2.6.29

2009-01-10 Thread Henrique de Moraes Holschuh
For your information: Starting with Linux kernel 2.6.29-rc1, the ThinkPad-ACPI driver will be in a new location in the kernel sources and configuration space. The new kernel source directory is: drivers/platform/x86. The documentation remains on Documentation/laptops/thinkpad-acpi.txt. All the