From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbeDSH03 (ORCPT ); Thu, 19 Apr 2018 03:26:29 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:46248 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbeDSHZG (ORCPT ); Thu, 19 Apr 2018 03:25:06 -0400 From: Kai-Heng Feng To: mjg59@srcf.ucam.org, pali.rohar@gmail.com, dvhart@infradead.org, andy@infradead.org, mario.limonciello@dell.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Kai-Heng Feng Subject: [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events Date: Thu, 19 Apr 2018 15:24:49 +0800 Message-Id: <20180419072449.4514-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two new events generated by dell-wmi, rfkill and fn-lock, from Dell Systems. These events are for notification purpose, so we can ignore them. Tested on XPS 9370. Signed-off-by: Kai-Heng Feng --- I ordered them functionally instead of alphabetically, I can re-order them to alphabetically if that's more diserable. drivers/platform/x86/dell-wmi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index 8d102195a392..51d2845d2ad9 100644 --- a/drivers/platform/x86/dell-wmi.c +++ b/drivers/platform/x86/dell-wmi.c @@ -266,6 +266,13 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = { /* Fn-lock */ { KE_IGNORE, 0x151, { KEY_RESERVED } }, + { KE_IGNORE, 0xe035, { KEY_RESERVED } }, + + /* Fn-lock switched to function keys */ + { KE_IGNORE, 0x0000, { KEY_RESERVED } }, + + /* Fn-lock switched to multimedia keys */ + { KE_IGNORE, 0x0001, { KEY_RESERVED } }, /* Change keyboard illumination */ { KE_IGNORE, 0x152, { KEY_KBDILLUMTOGGLE } }, @@ -275,6 +282,7 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = { * WMI event is supposed to trigger an action). */ { KE_IGNORE, 0x153, { KEY_RFKILL } }, + { KE_IGNORE, 0xe008, { KEY_RFKILL } }, /* RGB keyboard backlight control */ { KE_IGNORE, 0x154, { KEY_RESERVED } }, -- 2.17.0