thinkpad-acpi: restrict access to some firmware LEDs
commit5e8bb2d0df6a50d1a3f2a88ddb1c3786b083e54e
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 3 May 2009 01:21:28 +0000 (2 22:21 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 3 May 2009 01:21:28 +0000 (2 22:21 -0300)
treebcc9b2f7040a171e3371c60f8db4cdcda5366234
parentd88537ae1908a743a246c29193ca5d4d049e24d6
thinkpad-acpi: restrict access to some firmware LEDs

Some of the ThinkPad LEDs indicate critical conditions that can cause
data loss or cause hardware damage when ignored (e.g. force-ejecting
a powered up bay; ignoring a failing battery, or empty battery; force-
undocking with the dock buses still active, etc).

On almost all ThinkPads, LED access is write-only, and the firmware
usually does fire-and-forget signaling on them, so you effectively
lose whatever message the firmware was trying to convey to the user
when you override the LED state, without any chance to restore it.

Restrict access to all LEDs that can convey important alarms, or that
could mislead the user into incorrectly operating the hardware.  This
will make the Lenovo engineers less unhappy about the whole issue.

Allow users that really want it to still control all LEDs, it is the
unaware user that we have to worry about.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/laptops/thinkpad-acpi.txt
drivers/platform/x86/Kconfig
drivers/platform/x86/thinkpad_acpi.c