]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: Fix hotkeys registration on some toshiba models
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 9 Sep 2015 17:25:45 +0000 (11:25 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 10 Sep 2015 21:23:35 +0000 (14:23 -0700)
commit3432688a1b1e8dba89ea61230109748b6e347214
tree4cba5eb07bedc158a4f15ac5f106d76e37498e12
parentf436a261d1bf9d79ee12381e72795ff3f61b1fcd
toshiba_acpi: Fix hotkeys registration on some toshiba models

Commit 576587de03a2 ("toshiba_acpi: Use the Hotkey Event Type function
for keymap choosing") changed the *setup_keyboard function to query for
the Hotkey Event Type to help choose the correct keymap, but turns out
that here are certain Toshiba models out there not implementing this
feature, and thus, failing to continue the input device registration and
leaving such laptops without hotkey support.

This patch changes such check, and instead of returning an error if
the Hotkey Event Type is not present, we simply inform userspace about it,
changing the message printed from err to notice, making the function
responsible for registering the input device to continue.

This issue was found on a Toshiba Portege Z30-B, but there might be
some other models out there affected by this regression as well.

Cc: <stable@vger.kernel.org> # 4.1+
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c