Skip to content

Commit f5d5827

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid
Pull HID subsystem fixes from Jiri Kosina: - two device-specific quirks from Hans de Goede and Nic Soudée - reintroduction of (mistakenly remocved) ABS_RESERVED from Peter Hutterer * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: Input: restore EV_ABS ABS_RESERVED HID: quirks: fix RetroUSB.com devices HID: ite: Add USB id match for another ITE based keyboard rfkill key quirk
2 parents 9bb40f0 + c201e38 commit f5d5827

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

drivers/hid/hid-ids.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#ifndef HID_IDS_H_FILE
1818
#define HID_IDS_H_FILE
1919

20+
#define USB_VENDOR_ID_258A 0x258a
21+
#define USB_DEVICE_ID_258A_6A88 0x6a88
22+
2023
#define USB_VENDOR_ID_3M 0x0596
2124
#define USB_DEVICE_ID_3M1968 0x0500
2225
#define USB_DEVICE_ID_3M2256 0x0502
@@ -941,6 +944,10 @@
941944
#define USB_VENDOR_ID_REALTEK 0x0bda
942945
#define USB_DEVICE_ID_REALTEK_READER 0x0152
943946

947+
#define USB_VENDOR_ID_RETROUSB 0xf000
948+
#define USB_DEVICE_ID_RETROUSB_SNES_RETROPAD 0x0003
949+
#define USB_DEVICE_ID_RETROUSB_SNES_RETROPORT 0x00f1
950+
944951
#define USB_VENDOR_ID_ROCCAT 0x1e7d
945952
#define USB_DEVICE_ID_ROCCAT_ARVO 0x30d4
946953
#define USB_DEVICE_ID_ROCCAT_ISKU 0x319c

drivers/hid/hid-ite.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static int ite_event(struct hid_device *hdev, struct hid_field *field,
4242

4343
static const struct hid_device_id ite_devices[] = {
4444
{ HID_USB_DEVICE(USB_VENDOR_ID_ITE, USB_DEVICE_ID_ITE8595) },
45+
{ HID_USB_DEVICE(USB_VENDOR_ID_258A, USB_DEVICE_ID_258A_6A88) },
4546
{ }
4647
};
4748
MODULE_DEVICE_TABLE(hid, ite_devices);

drivers/hid/hid-quirks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ static const struct hid_device_id hid_quirks[] = {
137137
{ HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3003), HID_QUIRK_NOGET },
138138
{ HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008), HID_QUIRK_NOGET },
139139
{ HID_USB_DEVICE(USB_VENDOR_ID_REALTEK, USB_DEVICE_ID_REALTEK_READER), HID_QUIRK_NO_INIT_REPORTS },
140+
{ HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPAD), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
141+
{ HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPORT), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
140142
{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD), HID_QUIRK_BADPAD },
141143
{ HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD2), HID_QUIRK_NO_INIT_REPORTS },
142144
{ HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD), HID_QUIRK_NO_INIT_REPORTS },

include/uapi/linux/input-event-codes.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,15 @@
752752

753753
#define ABS_MISC 0x28
754754

755+
/*
756+
* 0x2e is reserved and should not be used in input drivers.
757+
* It was used by HID as ABS_MISC+6 and userspace needs to detect if
758+
* the next ABS_* event is correct or is just ABS_MISC + n.
759+
* We define here ABS_RESERVED so userspace can rely on it and detect
760+
* the situation described above.
761+
*/
762+
#define ABS_RESERVED 0x2e
763+
755764
#define ABS_MT_SLOT 0x2f /* MT slot being modified */
756765
#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */
757766
#define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */

0 commit comments

Comments
 (0)