thinkpad-acpi: make driver events work in NVRAM poll mode
commit380676923a29332ff3e3ee3db5f5632755d644f5
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 13 Feb 2010 16:27:13 +0000 (13 14:27 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:01:44 +0000 (20 20:01 -0200)
tree6a78b00ed7318c4f7a758d03e2b1c266375fff50
parent62ff92211d319820c88f3f49dcb93a7548a5f395
thinkpad-acpi: make driver events work in NVRAM poll mode

Thadeu Lima de Souza Cascardo reports this:

Brightness notification does not work until the user writes to
hotkey_mask attribute.  That's because the polling thread will only run
if hotkey_user_mask is set and someone is reading the input device or
if hotkey_driver_mask is set.  In this second case, this condition is
not tested after the mask is changed, because the brightness and
volume drivers are started after the hotkey drivers.

Fix tpacpi_hotkey_driver_mask_set() to call hotkey_poll_setup(), so
that the poller kthread will be started when needed.

Reported-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Andrew Morton <akpm@linux-foundation.org>
drivers/platform/x86/thinkpad_acpi.c