* [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
@ 2018-06-01 3:23 Kai-Heng Feng
2018-06-01 8:20 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Kai-Heng Feng @ 2018-06-01 3:23 UTC (permalink / raw)
To: mjg59, pali.rohar, dvhart, andy
Cc: platform-driver-x86, linux-kernel, Kai-Heng Feng
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>
---
drivers/platform/x86/dell-wmi.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 8d102195a392..ba8e6725d7ac 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] = {
* override them.
*/
static const struct key_entry dell_wmi_keymap_type_0010[] = {
+ /* Fn-lock switched to function keys */
+ { KE_IGNORE, 0x0, { KEY_RESERVED } },
+
+ /* Fn-lock switched to multimedia keys */
+ { KE_IGNORE, 0x1, { KEY_RESERVED } },
+
/* Mic mute */
{ KE_KEY, 0x150, { KEY_MICMUTE } },
@@ -296,6 +302,14 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
{ KE_KEY, 0x851, { KEY_PROG2 } },
{ KE_KEY, 0x852, { KEY_PROG3 } },
+ /*
+ * Radio disable (notify only -- there is no model for which the
+ * WMI event is supposed to trigger an action).
+ */
+ { KE_IGNORE, 0xe008, { KEY_RFKILL } },
+
+ /* Fn-lock */
+ { KE_IGNORE, 0xe035, { KEY_RESERVED } },
};
/*
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
2018-06-01 3:23 [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events Kai-Heng Feng
@ 2018-06-01 8:20 ` Andy Shevchenko
2018-06-01 16:47 ` Darren Hart
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2018-06-01 8:20 UTC (permalink / raw)
To: Kai-Heng Feng
Cc: Matthew Garrett, Pali Rohár, Darren Hart, Andy Shevchenko,
Platform Driver, Linux Kernel Mailing List
On Fri, Jun 1, 2018 at 6:23 AM, Kai-Heng Feng
<kai.heng.feng@canonical.com> wrote:
> 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.
>
Pushed to my review and testing queue, thanks!
P.S. There are some patches under Darren's queue, but for some reason
didn't processed yet.
> 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>
> ---
> drivers/platform/x86/dell-wmi.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
> index 8d102195a392..ba8e6725d7ac 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] = {
> * override them.
> */
> static const struct key_entry dell_wmi_keymap_type_0010[] = {
> + /* Fn-lock switched to function keys */
> + { KE_IGNORE, 0x0, { KEY_RESERVED } },
> +
> + /* Fn-lock switched to multimedia keys */
> + { KE_IGNORE, 0x1, { KEY_RESERVED } },
> +
> /* Mic mute */
> { KE_KEY, 0x150, { KEY_MICMUTE } },
>
> @@ -296,6 +302,14 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
> { KE_KEY, 0x851, { KEY_PROG2 } },
> { KE_KEY, 0x852, { KEY_PROG3 } },
>
> + /*
> + * Radio disable (notify only -- there is no model for which the
> + * WMI event is supposed to trigger an action).
> + */
> + { KE_IGNORE, 0xe008, { KEY_RFKILL } },
> +
> + /* Fn-lock */
> + { KE_IGNORE, 0xe035, { KEY_RESERVED } },
> };
>
> /*
> --
> 2.17.0
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
2018-06-01 8:20 ` Andy Shevchenko
@ 2018-06-01 16:47 ` Darren Hart
2018-06-02 14:09 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Darren Hart @ 2018-06-01 16:47 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Kai-Heng Feng, Matthew Garrett, Pali Rohár, Andy Shevchenko,
Platform Driver, Linux Kernel Mailing List
On Fri, Jun 01, 2018 at 11:20:39AM +0300, Andy Shevchenko wrote:
> On Fri, Jun 1, 2018 at 6:23 AM, Kai-Heng Feng
> <kai.heng.feng@canonical.com> wrote:
> > 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.
> >
>
> Pushed to my review and testing queue, thanks!
>
> P.S. There are some patches under Darren's queue, but for some reason
> didn't processed yet.
Thanks for getting this one Andy. I'm traveling, but am working through these
currently. I'll assume you are handling this one.
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
2018-06-01 16:47 ` Darren Hart
@ 2018-06-02 14:09 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2018-06-02 14:09 UTC (permalink / raw)
To: Darren Hart
Cc: Kai-Heng Feng, Matthew Garrett, Pali Rohár, Andy Shevchenko,
Platform Driver, Linux Kernel Mailing List
On Fri, Jun 1, 2018 at 7:47 PM, Darren Hart <dvhart@infradead.org> wrote:
> On Fri, Jun 01, 2018 at 11:20:39AM +0300, Andy Shevchenko wrote:
>> On Fri, Jun 1, 2018 at 6:23 AM, Kai-Heng Feng
>> <kai.heng.feng@canonical.com> wrote:
>> Pushed to my review and testing queue, thanks!
>>
>> P.S. There are some patches under Darren's queue, but for some reason
>> didn't processed yet.
>
> Thanks for getting this one Andy. I'm traveling, but am working through these
> currently. I'll assume you are handling this one.
Correct.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-02 14:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01 3:23 [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events Kai-Heng Feng
2018-06-01 8:20 ` Andy Shevchenko
2018-06-01 16:47 ` Darren Hart
2018-06-02 14:09 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).