diff mbox series

platform/x86: dell-wmi: Ignore new keyboard backlight change event

Message ID 20181212064125.25137-1-kai.heng.feng@canonical.com (mailing list archive)
State Accepted, archived
Delegated to: Andy Shevchenko
Headers show
Series platform/x86: dell-wmi: Ignore new keyboard backlight change event | expand

Commit Message

Kai-Heng Feng Dec. 12, 2018, 6:41 a.m. UTC
There's a new wmi event generated by dell-wmi when pressing keyboard
backlight hotkey:
[ 3285.474172] dell_wmi: Unknown key with type 0x0010 and code 0x003f pressed

This event is for notification purpose, let's ignore it. The keyboard
backlight hotkey uses another event so it still works without event
0x3f.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
 drivers/platform/x86/dell-wmi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Pali Rohár Dec. 12, 2018, 2:06 p.m. UTC | #1
On Wednesday 12 December 2018 14:41:25 Kai-Heng Feng wrote:
> There's a new wmi event generated by dell-wmi when pressing keyboard
> backlight hotkey:
> [ 3285.474172] dell_wmi: Unknown key with type 0x0010 and code 0x003f pressed
> 
> This event is for notification purpose, let's ignore it. The keyboard
> backlight hotkey uses another event so it still works without event
> 0x3f.
> 
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> ---
>  drivers/platform/x86/dell-wmi.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
> index 16c7f3d9a335..c3166ba73e9a 100644
> --- a/drivers/platform/x86/dell-wmi.c
> +++ b/drivers/platform/x86/dell-wmi.c
> @@ -267,6 +267,9 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
>  	/* Fn-lock switched to multimedia keys */
>  	{ KE_IGNORE, 0x1, { KEY_RESERVED } },
>  
> +	/* Keyboard backlight change notification */
> +	{ KE_IGNORE, 0x3f, { KEY_RESERVED } },
> +
>  	/* Mic mute */
>  	{ KE_KEY, 0x150, { KEY_MICMUTE } },
>  

Looks good.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Kai-Heng Feng Jan. 24, 2019, 6:25 a.m. UTC | #2
Hi Darren,

> On Dec 12, 2018, at 22:06, Pali Rohár <pali.rohar@gmail.com> wrote:
> 
> On Wednesday 12 December 2018 14:41:25 Kai-Heng Feng wrote:
>> There's a new wmi event generated by dell-wmi when pressing keyboard
>> backlight hotkey:
>> [ 3285.474172] dell_wmi: Unknown key with type 0x0010 and code 0x003f pressed
>> 
>> This event is for notification purpose, let's ignore it. The keyboard
>> backlight hotkey uses another event so it still works without event
>> 0x3f.
>> 
>> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
>> ---
>> drivers/platform/x86/dell-wmi.c | 3 +++
>> 1 file changed, 3 insertions(+)
>> 
>> diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
>> index 16c7f3d9a335..c3166ba73e9a 100644
>> --- a/drivers/platform/x86/dell-wmi.c
>> +++ b/drivers/platform/x86/dell-wmi.c
>> @@ -267,6 +267,9 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
>> 	/* Fn-lock switched to multimedia keys */
>> 	{ KE_IGNORE, 0x1, { KEY_RESERVED } },
>> 
>> +	/* Keyboard backlight change notification */
>> +	{ KE_IGNORE, 0x3f, { KEY_RESERVED } },
>> +
>> 	/* Mic mute */
>> 	{ KE_KEY, 0x150, { KEY_MICMUTE } },
>> 
> 
> Looks good.
> 
> Reviewed-by: Pali Rohár <pali.rohar@gmail.com>

Please merge this patch, thanks.

Kai-Heng

> 
> -- 
> Pali Rohár
> pali.rohar@gmail.com
Andy Shevchenko Feb. 5, 2019, 5:35 p.m. UTC | #3
On Thu, Jan 24, 2019 at 8:27 AM Kai-Heng Feng
<kai.heng.feng@canonical.com> wrote:
>
> Hi Darren,
>
> > On Dec 12, 2018, at 22:06, Pali Rohár <pali.rohar@gmail.com> wrote:
> >
> > On Wednesday 12 December 2018 14:41:25 Kai-Heng Feng wrote:
> >> There's a new wmi event generated by dell-wmi when pressing keyboard
> >> backlight hotkey:
> >> [ 3285.474172] dell_wmi: Unknown key with type 0x0010 and code 0x003f pressed
> >>
> >> This event is for notification purpose, let's ignore it. The keyboard
> >> backlight hotkey uses another event so it still works without event
> >> 0x3f.

Pushed to my review and testing queue, thanks!

> >>
> >> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> >> ---
> >> drivers/platform/x86/dell-wmi.c | 3 +++
> >> 1 file changed, 3 insertions(+)
> >>
> >> diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
> >> index 16c7f3d9a335..c3166ba73e9a 100644
> >> --- a/drivers/platform/x86/dell-wmi.c
> >> +++ b/drivers/platform/x86/dell-wmi.c
> >> @@ -267,6 +267,9 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
> >>      /* Fn-lock switched to multimedia keys */
> >>      { KE_IGNORE, 0x1, { KEY_RESERVED } },
> >>
> >> +    /* Keyboard backlight change notification */
> >> +    { KE_IGNORE, 0x3f, { KEY_RESERVED } },
> >> +
> >>      /* Mic mute */
> >>      { KE_KEY, 0x150, { KEY_MICMUTE } },
> >>
> >
> > Looks good.
> >
> > Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
>
> Please merge this patch, thanks.
>
> Kai-Heng
>
> >
> > --
> > Pali Rohár
> > pali.rohar@gmail.com
>
diff mbox series

Patch

diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 16c7f3d9a335..c3166ba73e9a 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -267,6 +267,9 @@  static const struct key_entry dell_wmi_keymap_type_0010[] = {
 	/* Fn-lock switched to multimedia keys */
 	{ KE_IGNORE, 0x1, { KEY_RESERVED } },
 
+	/* Keyboard backlight change notification */
+	{ KE_IGNORE, 0x3f, { KEY_RESERVED } },
+
 	/* Mic mute */
 	{ KE_KEY, 0x150, { KEY_MICMUTE } },