]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-wmi: Ignore keyboard attached / detached events
authorHans de Goede <hdegoede@redhat.com>
Wed, 13 May 2020 13:05:44 +0000 (15:05 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 15 May 2020 12:53:06 +0000 (15:53 +0300)
commit958a8d6e1c0b9133219f540a42753b5cfe7a0bd1
treec593d419b1d9c6a775398459f5cd90001bb95a95
parente2653424f2d91e160e44db8632be47f9ad614718
platform/x86: dell-wmi: Ignore keyboard attached / detached events

Ignore events with a type of 0x0011 and a code of 0xfff2 / 0xfff3,
this silences the following messages being logged when the keyboard is
detached / attached on a Dell Venue 11 Pro 7130:

[   63.621953] dell_wmi: Unknown key with type 0x0011 and code 0xfff2 pressed
[   70.240558] dell_wmi: Unknown key with type 0x0011 and code 0xfff3 pressed

Note SW_TABLET_MODE is already reported through the intel_vbtn driver on
this and other Dell devices, so dell_wmi should not report this too,
to avoid duplicate events.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mario Limonciello <Mario.limonciello@dell.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-wmi.c