]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:14 +0000 (14:49 -0700)
commit23f8f4326a15a7f04656f19fa94aa385eef67e4d
treec04df9d4bd734f475bd9442e610c43e3c13b112a
parent0404d26f31742bea0f5258c90acd21041b0afa9c
toshiba_acpi: Fix hotkeys registration on some toshiba models

commit 53147b6cabee5e8d1997b5682fcc0c3b72ddf9c2 upstream.

Commit a2b3471b5b13 ("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.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/toshiba_acpi.c