thinkpad-acpi: make driver events work in NVRAM poll mode
commitf418da57ef58469ddccd65fac9edc1e0f94dff2d
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 13 Feb 2010 16:44:16 +0000 (13 14:44 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:03:58 +0000 (20 20:03 -0200)
treebe527938cb45f0ecdb6fc219f1870ea09b3e55d5
parent3fddaefd83486793b7a7d0c7b8c671adfc3b929e
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