Skip to contentSkip to conversation

HID: asus: Filter keyboard EC for old ROG keyboard

PATCH In review Luke D Jones 2 participants 3 messages Feb 18, 2021 – May 5, 2021 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: asus: Filter keyboard EC for old ROG keyboard

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.

---
 drivers/hid/hid-asus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-asus.c +1 -1
index 2ab22b925941..1ed1c05c3d54 100644
@@ -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'.
Signature · 1 line
2.30.1
author
#1 lore raw

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

Quoted 28 lines · 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 <[email protected] <mailto:luke%40ljones.dev>>

---
drivers/hid/hid-asus.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-asus.c +1 -1
index 2ab22b925941..1ed1c05c3d54 100644
@@ -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'.
Signature · 1 line
2.30.1
maintainer
#2 lore raw
In reply to Luke D Jones
Quoted 7 lines · 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.

Applied now, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs