aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Heng Feng <kai.heng.feng@canonical.com>2018-05-31 23:23:22 -0400
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-06-04 05:20:22 -0400
commit64b824649b7787c9ac491015f16ffa4ad2ec287e (patch)
tree6ae79f4fa1cd392bd2b4e68edc8cfe8b7c314aec
parent1189456b1cce36f653622d15c0f38410bf6c37c5 (diff)
platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
There are two new events generated by dell-wmi, rfkill and fn-lock, from Dell Systems. When Fn-lock hotkey gets pressed to switch to function mode: [85951.591542] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85951.591546] dell_wmi: Unknown key with type 0x0010 and code 0x0000 pressed When Fn-lock hotkey gets pressed to switch to multimedia mode: [85956.667686] dell_wmi: Unknown key with type 0x0010 and code 0xe035 pressed [85956.667690] dell_wmi: Unknown key with type 0x0010 and code 0x0001 pressed When radio hotkey gets pressed: [85974.430220] dell_wmi: Unknown key with type 0x0010 and code 0xe008 pressed These events are for notification purpose, so we can ignore them. This patch is tested on XPS 9370. Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Reviewed-by: Mario Limonciello <mario.limonciello@dell.com> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/platform/x86/dell-wmi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 7c918e373ac2..16c7f3d9a335 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -261,6 +261,12 @@ static const u16 bios_to_linux_keycode[256] = {
261 * override them. 261 * override them.
262 */ 262 */
263static const struct key_entry dell_wmi_keymap_type_0010[] = { 263static const struct key_entry dell_wmi_keymap_type_0010[] = {
264 /* Fn-lock switched to function keys */
265 { KE_IGNORE, 0x0, { KEY_RESERVED } },
266
267 /* Fn-lock switched to multimedia keys */
268 { KE_IGNORE, 0x1, { KEY_RESERVED } },
269
264 /* Mic mute */ 270 /* Mic mute */
265 { KE_KEY, 0x150, { KEY_MICMUTE } }, 271 { KE_KEY, 0x150, { KEY_MICMUTE } },
266 272
@@ -296,6 +302,14 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
296 { KE_KEY, 0x851, { KEY_PROG2 } }, 302 { KE_KEY, 0x851, { KEY_PROG2 } },
297 { KE_KEY, 0x852, { KEY_PROG3 } }, 303 { KE_KEY, 0x852, { KEY_PROG3 } },
298 304
305 /*
306 * Radio disable (notify only -- there is no model for which the
307 * WMI event is supposed to trigger an action).
308 */
309 { KE_IGNORE, 0xe008, { KEY_RFKILL } },
310
311 /* Fn-lock */
312 { KE_IGNORE, 0xe035, { KEY_RESERVED } },
299}; 313};
300 314
301/* 315/*