linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: asus: Filter keyboard EC for old ROG keyboard
@ 2021-02-18 21:38 Luke D Jones
  2021-04-18  8:48 ` Luke Jones
  2021-05-05 12:22 ` Jiri Kosina
  0 siblings, 2 replies; 3+ messages in thread
From: Luke D Jones @ 2021-02-18 21:38 UTC (permalink / raw)
  To: jikos; +Cc: benjamin.tissoires, rydberg, linux-input, Luke D Jones

Older ROG keyboards emit a similar stream of bytes to the new
N-Key keyboards and require filtering to prevent a lot of
unmapped key warnings showing. As all the ROG keyboards use
QUIRK_USE_KBD_BACKLIGHT this is now used to branch to filtering
in asus_raw_event.

Signed-off-by: Luke D Jones <luke@ljones.dev>
---
 drivers/hid/hid-asus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index 2ab22b925941..1ed1c05c3d54 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -335,7 +335,7 @@ static int asus_raw_event(struct hid_device *hdev,
 	if (drvdata->quirks & QUIRK_MEDION_E1239T)
 		return asus_e1239t_event(drvdata, data, size);
 
-	if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) {
+	if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) {
 		/*
 		 * Skip these report ID, the device emits a continuous stream associated
 		 * with the AURA mode it is in which looks like an 'echo'.
-- 
2.30.1


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

* Re: [PATCH] HID: asus: Filter keyboard EC for old ROG keyboard
  2021-02-18 21:38 [PATCH] HID: asus: Filter keyboard EC for old ROG keyboard Luke D Jones
@ 2021-04-18  8:48 ` Luke Jones
  2021-05-05 12:22 ` Jiri Kosina
  1 sibling, 0 replies; 3+ messages in thread
From: Luke Jones @ 2021-04-18  8:48 UTC (permalink / raw)
  To: jikos; +Cc: benjamin.tissoires, rydberg, linux-input

Hi all,

Can I get a status on this patch please? I've not had feedback.
I can verify that the same changed in a dkms module used by
hundreds of others is working quite well.

Cheers,
Luke

On Fri, 19 Feb 2021, at 10:38 AM, Luke D Jones wrote:
> Older ROG keyboards emit a similar stream of bytes to the new
> N-Key keyboards and require filtering to prevent a lot of
> unmapped key warnings showing. As all the ROG keyboards use
> QUIRK_USE_KBD_BACKLIGHT this is now used to branch to filtering
> in asus_raw_event.
> 
> Signed-off-by: Luke D Jones <luke@ljones.dev <mailto:luke%40ljones.dev>>
> ---
> drivers/hid/hid-asus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
> index 2ab22b925941..1ed1c05c3d54 100644
> --- a/drivers/hid/hid-asus.c
> +++ b/drivers/hid/hid-asus.c
> @@ -335,7 +335,7 @@ static int asus_raw_event(struct hid_device *hdev,
> if (drvdata->quirks & QUIRK_MEDION_E1239T)
> return asus_e1239t_event(drvdata, data, size);
>  
> - if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) {
> + if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) {
> /*
> * Skip these report ID, the device emits a continuous stream associated
> * with the AURA mode it is in which looks like an 'echo'.
> -- 
> 2.30.1
> 
> 

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

* Re: [PATCH] HID: asus: Filter keyboard EC for old ROG keyboard
  2021-02-18 21:38 [PATCH] HID: asus: Filter keyboard EC for old ROG keyboard Luke D Jones
  2021-04-18  8:48 ` Luke Jones
@ 2021-05-05 12:22 ` Jiri Kosina
  1 sibling, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2021-05-05 12:22 UTC (permalink / raw)
  To: Luke D Jones; +Cc: benjamin.tissoires, rydberg, linux-input

On Fri, 19 Feb 2021, Luke D Jones wrote:

> Older ROG keyboards emit a similar stream of bytes to the new
> N-Key keyboards and require filtering to prevent a lot of
> unmapped key warnings showing. As all the ROG keyboards use
> QUIRK_USE_KBD_BACKLIGHT this is now used to branch to filtering
> in asus_raw_event.
> 
> Signed-off-by: Luke D Jones <luke@ljones.dev>

Applied now, thanks.

-- 
Jiri Kosina
SUSE Labs


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

end of thread, other threads:[~2021-05-05 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 21:38 [PATCH] HID: asus: Filter keyboard EC for old ROG keyboard Luke D Jones
2021-04-18  8:48 ` Luke Jones
2021-05-05 12:22 ` Jiri Kosina

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