[ibm-acpi-devel] [PATCH 08/20] ACPI: thinkpad-acpi: spring cleanup part 3

2008-01-08 Thread Henrique de Moraes Holschuh
Reorder code in the file to get rid of more of the forward declarations, and to make things cleaner and more organized. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 1493 +- 1 files changed, 734 insertion

[ibm-acpi-devel] [PATCH 11/20] ACPI: thinkpad-acpi: rename IBM in defines

2008-01-08 Thread Henrique de Moraes Holschuh
Rename defines with IBM in their name that are related to the older driver name (ibm-acpi) to TPACPI, unless they are specific to IBM ThinkPads. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 324 +- 1 fil

[ibm-acpi-devel] [PATCH 10/20] ACPI: thinkpad-acpi: module glue cleanups

2008-01-08 Thread Henrique de Moraes Holschuh
General cleanup of module glue: Do some code reordering, and add missing parameter help text. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 83 +- 1 files changed, 50 insertions(+), 33 deletions(-) diff

[ibm-acpi-devel] [PATCH 15/20] ACPI: thinkpad-acpi: wakeup on hotunplug reporting

2008-01-08 Thread Henrique de Moraes Holschuh
Handle some HKEY events that the firmware uses to report the reason for a wake up, and to also notify that the system could go back to sleep (if it woke up just to eject something from the bay, or to undock). The driver will report the reason of the last wake up in the sysfs attribute "wakeup_reas

[ibm-acpi-devel] [PATCH 20/20] ACPI: thinkpad-acpi: bump up version to 0.19

2008-01-08 Thread Henrique de Moraes Holschuh
The major code reorganization and cleanups, and new HKEY events, plus poll()/select() support are good reasons to checkpoint a new version... Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- Documentation/thinkpad-acpi.txt |4 ++-- drivers/misc/thinkpad_acpi.c|2 +-

[ibm-acpi-devel] [PATCH 16/20] ACPI: thinkpad-acpi: add X61t HKEY events

2008-01-08 Thread Henrique de Moraes Holschuh
Tomas Carnecky reports that events 0x5009 and 0x500a are swivel events, and that 0x500b/0x500c are tablet pen storage bay events. Document these events, and avoid nasty messages when they happen. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- Documentation/thinkpad-acpi.txt |

[ibm-acpi-devel] [PATCH 17/20] ACPI: thinkpad-acpi: silence _sta warning

2008-01-08 Thread Henrique de Moraes Holschuh
When both CONFIG_THINKPAD_ACPI_DOCK and CONFIG_THINKPAD_ACPI_BAY are undefined, _sta is not used and that causes a gcc warning. Fix it (and I think this is a regression, I am pretty sure I fixed this once before, sorry about that). Issue reported by: Pritt Laes. Signed-off-by: Henrique de Moraes

[ibm-acpi-devel] [PATCH 06/20] ACPI: thinkpad-acpi: spring cleanup part 1

2008-01-08 Thread Henrique de Moraes Holschuh
Remove the header file. Private header files used by a single .c file are in bad taste, and I know better now. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 632 - drivers/misc/thinkpad_acpi.h | 656 ---

[ibm-acpi-devel] [PATCH 19/20] ACPI: thinkpad-acpi: update copyright dates to 2008

2008-01-08 Thread Henrique de Moraes Holschuh
Update the copyright headers to include 2008. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 91bda31..05f532

[ibm-acpi-devel] [PATCH 04/20] ACPI: thinkpad-acpi: add CMOS NVRAM polling for hot keys (v9)

2008-01-08 Thread Henrique de Moraes Holschuh
Older ThinkPad models do not export some of the hot keys over the event-based ACPI hot key interface. For these models, one has to poll the CMOS NVRAM to check the key state at a rate faster than the expected rate at which the user might repeatedly press the same hot key. This patch implements th

[ibm-acpi-devel] [PATCH 18/20] ACPI: thinkpad-acpi: add poll() support to some sysfs attributes

2008-01-08 Thread Henrique de Moraes Holschuh
Implement poll()/select() support through sysfs_notify() for some key attributes which userspace might want to poll() or select() on. In order to let userspace know poll()/select() support is available for an attribute, the thinkpad-acpi sysfs interface version is also bumped up. Further changes t

[ibm-acpi-devel] [PATCH 12/20] ACPI: thinkpad-acpi: some checkpatch.pl fluff

2008-01-08 Thread Henrique de Moraes Holschuh
Fix some of the crap reported by checkpatch.pl. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 291 +- 1 files changed, 175 insertions(+), 116 deletions(-) diff --git a/drivers/misc/thinkpad_acpi.c b/driv

[ibm-acpi-devel] [PATCH 14/20] ACPI: thinkpad-acpi: cleanup hotkey_notify and HKEY log messages

2008-01-08 Thread Henrique de Moraes Holschuh
Use a generic message on hotkey_notify to log unknown and unhandled events, and cleanup hotkey_notify a little. Also, document event 0x5010 (brightness changed notification) and do not log it as an unknown event (even if we do not use it for anything right now). Signed-off-by: Henrique de Moraes

[ibm-acpi-devel] [PATCH 07/20] ACPI: thinkpad-acpi: spring cleanup part 2

2008-01-08 Thread Henrique de Moraes Holschuh
Move most subdriver-related stuff imported from the header file closer to their subdriver code. Also, delete unneeded forward declarations. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 613 +- 1 files c

[ibm-acpi-devel] [PATCH 05/20] ACPI: thinkpad-acpi: bump up version to 0.18

2008-01-08 Thread Henrique de Moraes Holschuh
The NVRAM polling support for hot keys is reason enough to bump up the version string. Do it. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- Documentation/thinkpad-acpi.txt |4 ++-- drivers/misc/thinkpad_acpi.c|2 +- 2 files changed, 3 insertions(+), 3 deletions(-

[ibm-acpi-devel] [PATCH 13/20] ACPI: thinkpad-acpi: add suspend handler

2008-01-08 Thread Henrique de Moraes Holschuh
Add a handler for suspend events. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index dd6fa81..c6

[ibm-acpi-devel] [PATCH 09/20] ACPI: thinkpad-acpi: spring cleanup part 4

2008-01-08 Thread Henrique de Moraes Holschuh
Remove dead code, and anything in the old changelog that is not a thank you credit, or a key point to track down history. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 55 +++-- 1 files changed, 4 insertions

[ibm-acpi-devel] [PATCH 03/20] ACPI: thinkpad-acpi: prepare for NVRAM polling support

2008-01-08 Thread Henrique de Moraes Holschuh
Make some small internal thinkpad-acpi changes to the hotkey subdriver code that will make it easier to add NVRAM polling support. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 82 + 1 files changed, 42

[ibm-acpi-devel] [PATCH 01/20] ACPI: thinkpad-acpi: document keymap gotcha's (v2)

2008-01-08 Thread Henrique de Moraes Holschuh
Publish the requirements for keymap changes. This is a documentation change, only. Currently, people look at the thinkpad-acpi default keymaps, and think: "modifying this is a trivial thing, it can't break systems, and there are keys defined for foo and bar, but the driver has them as KEY_RESERVE

[ibm-acpi-devel] [PATCH 02/20] ACPI: thinkpad-acpi: refactor hotkey_get and hotkey_set (v2)

2008-01-08 Thread Henrique de Moraes Holschuh
Refactor and organize the code a bit for the NVRAM polling support: 1. Split hotkey_get/set into hotkey_status_get/set and hotkey_mask_get/set; 2. Cache the status of hot key mask for later driver use; 3. Make sure the cache of hot key mask is refreshed when needed; 4. log a printk notice when the

[ibm-acpi-devel] [GIT PATCH] thinkpad-acpi patches for 2.6.25 (replaces batch 1)

2008-01-08 Thread Henrique de Moraes Holschuh
Len, This patchset has my current thinkpad-acpi queue. The target is 2.6.25. This set *replaces* the previous batch 1 I sent. I have changed a few of the patches, and added a few new ones in different points of the stack. It is simpler to just resubmit them all than to ask you to replace this