[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3e0d394545954ed79b8f883e1ac93338@AUSX13MPC105.AMER.DELL.COM>
Date: Mon, 8 Jun 2020 15:30:52 +0000
From: <Mario.Limonciello@...l.com>
To: <pali@...nel.org>, <y.linux@...itcher.com>
CC: <linux-kernel@...r.kernel.org>,
<platform-driver-x86@...r.kernel.org>, <mjg59@...f.ucam.org>
Subject: RE: [PATCH 1/3] platform/x86: dell-wmi: add new backlight events
> -----Original Message-----
> From: platform-driver-x86-owner@...r.kernel.org <platform-driver-x86-
> owner@...r.kernel.org> On Behalf Of Pali Rohár
> Sent: Monday, June 8, 2020 3:35 AM
> To: Y Paritcher
> Cc: linux-kernel@...r.kernel.org; platform-driver-x86@...r.kernel.org;
> Matthew Garrett
> Subject: Re: [PATCH 1/3] platform/x86: dell-wmi: add new backlight events
>
>
> [EXTERNAL EMAIL]
>
> On Monday 08 June 2020 00:22:24 Y Paritcher wrote:
> > Ignore events with a type of 0x0010 and a code of 0x57 / 0x58,
> > this silences the following messages being logged on a
> > Dell Inspiron 5593:
> >
> > dell_wmi: Unknown key with type 0x0010 and code 0x0057 pressed
> > dell_wmi: Unknown key with type 0x0010 and code 0x0058 pressed
> >
> > Signed-off-by: Y Paritcher <y.linux@...itcher.com>
> > ---
> > drivers/platform/x86/dell-wmi.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-
> wmi.c
> > index c25a4286d766..0b4f72f923cd 100644
> > --- a/drivers/platform/x86/dell-wmi.c
> > +++ b/drivers/platform/x86/dell-wmi.c
> > @@ -252,6 +252,10 @@ static const struct key_entry
> dell_wmi_keymap_type_0010[] = {
> > /* Fn-lock switched to multimedia keys */
> > { KE_IGNORE, 0x1, { KEY_RESERVED } },
> >
> > + /* Backlight brightness level */
> > + { KE_KEY, 0x57, { KEY_BRIGHTNESSDOWN } },
> > + { KE_KEY, 0x58, { KEY_BRIGHTNESSUP } },
> > +
For these particular events are they emitted by another interface as well in this
platform?
If so they should be KE_IGNORE so you don't end up with double notifications to
userspace.
> > /* Keyboard backlight change notification */
> > { KE_IGNORE, 0x3f, { KEY_RESERVED } },
>
> Please, keep codes sorted.
>
> >
> > --
> > 2.27.0
> >
Powered by blists - more mailing lists