platform-driver-x86.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] platform/x86: hp-wmi: Ignore Win-Lock key events
@ 2023-01-23 21:41 Rishit Bansal
  2023-01-24 12:48 ` Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: Rishit Bansal @ 2023-01-23 21:41 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross, platform-driver-x86, linux-kernel
  Cc: Rishit Bansal

Follow up from https://lore.kernel.org/all/20230120221214.24426-1-rishitbansal0@gmail.com/

There is a "Win-Lock" key on HP Omen Laptops which supports
enabling and disabling the Windows key, which trigger commands 0x21a4
and 0x121a4 respectively. Currently the hp-wmi driver throws warnings
for this event. These can be ignored using KE_IGNORE as the
functionality is handled by the keyboard firmware itself.

Signed-off-by: Rishit Bansal <rishitbansal0@gmail.com>
---
 drivers/platform/x86/hp/hp-wmi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 0a99058be813..009cf0bda756 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -216,6 +216,8 @@ static const struct key_entry hp_wmi_keymap[] = {
 	{ KE_KEY, 0x213b,  { KEY_INFO } },
 	{ KE_KEY, 0x2169,  { KEY_ROTATE_DISPLAY } },
 	{ KE_KEY, 0x216a,  { KEY_SETUP } },
+	{ KE_IGNORE, 0x21a4, }, /* Win Lock On */
+	{ KE_IGNORE, 0x121a4, }, /* Win Lock Off */
 	{ KE_KEY, 0x21a9,  { KEY_TOUCHPAD_OFF } },
 	{ KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } },
 	{ KE_KEY, 0x231b,  { KEY_HELP } },
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] platform/x86: hp-wmi: Ignore Win-Lock key events
  2023-01-23 21:41 [PATCH] platform/x86: hp-wmi: Ignore Win-Lock key events Rishit Bansal
@ 2023-01-24 12:48 ` Hans de Goede
  0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2023-01-24 12:48 UTC (permalink / raw)
  To: Rishit Bansal, Mark Gross, platform-driver-x86, linux-kernel

Hi,

On 1/23/23 22:41, Rishit Bansal wrote:
> Follow up from https://lore.kernel.org/all/20230120221214.24426-1-rishitbansal0@gmail.com/
> 
> There is a "Win-Lock" key on HP Omen Laptops which supports
> enabling and disabling the Windows key, which trigger commands 0x21a4
> and 0x121a4 respectively. Currently the hp-wmi driver throws warnings
> for this event. These can be ignored using KE_IGNORE as the
> functionality is handled by the keyboard firmware itself.
> 
> Signed-off-by: Rishit Bansal <rishitbansal0@gmail.com>

Thank you for your patch, I've applied this patch to my review-hans 
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.

Regards,

Hans



> ---
>  drivers/platform/x86/hp/hp-wmi.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
> index 0a99058be813..009cf0bda756 100644
> --- a/drivers/platform/x86/hp/hp-wmi.c
> +++ b/drivers/platform/x86/hp/hp-wmi.c
> @@ -216,6 +216,8 @@ static const struct key_entry hp_wmi_keymap[] = {
>  	{ KE_KEY, 0x213b,  { KEY_INFO } },
>  	{ KE_KEY, 0x2169,  { KEY_ROTATE_DISPLAY } },
>  	{ KE_KEY, 0x216a,  { KEY_SETUP } },
> +	{ KE_IGNORE, 0x21a4, }, /* Win Lock On */
> +	{ KE_IGNORE, 0x121a4, }, /* Win Lock Off */
>  	{ KE_KEY, 0x21a9,  { KEY_TOUCHPAD_OFF } },
>  	{ KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } },
>  	{ KE_KEY, 0x231b,  { KEY_HELP } },


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-24 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 21:41 [PATCH] platform/x86: hp-wmi: Ignore Win-Lock key events Rishit Bansal
2023-01-24 12:48 ` Hans de Goede

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).