HID: Add vendor specific usage pages for Logitech G920
authorSimon Wood <simon@mungewell.org>
Thu, 19 Nov 2015 23:42:14 +0000 (16:42 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Nov 2015 09:30:00 +0000 (10:30 +0100)
The Logitech G920 uses a couple of vendor specific usage pages,
which results in incorrect number of axis/buttons being detected.

This patch adds these pages to the 'ignore' list.

Reported-by: Elias Vanderstuyft <elias.vds@gmail.com>
Signed-off-by: Simon Wood <simon@mungewell.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
include/linux/hid.h

index 2ba6bf69b7d0c45c3ca76b612de5d647d513e3ba..f4eeb6bcb9acbd89b6705530fd6b879ce8b8ede0 100644 (file)
@@ -960,6 +960,10 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
                goto ignore;
 
        case HID_UP_LOGIVENDOR:
+               /* intentional fallback */
+       case HID_UP_LOGIVENDOR2:
+               /* intentional fallback */
+       case HID_UP_LOGIVENDOR3:
                goto ignore;
 
        case HID_UP_PID:
index 251a1d382e2325a17e0acb169d6e111589cf7444..a6d7a3fc2cb309990cc0d8418bf13b11df014e31 100644 (file)
@@ -168,6 +168,8 @@ struct hid_item {
 #define HID_UP_MSVENDOR                0xff000000
 #define HID_UP_CUSTOM          0x00ff0000
 #define HID_UP_LOGIVENDOR      0xffbc0000
+#define HID_UP_LOGIVENDOR2   0xff090000
+#define HID_UP_LOGIVENDOR3   0xff430000
 #define HID_UP_LNVENDOR                0xffa00000
 #define HID_UP_SENSOR          0x00200000