Skip to content

Commit 0811575

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.4/logitech' into for-linus
- extension of supported usage range for customer page, as some Logitech devices are actually making use of it. From Olivier Gay. - support for Lightspeed and G700(s) receivers from Filipe Laíns and Benjamin Tissoires Signed-off-by: Jiri Kosina <[email protected]>
2 parents 979d859 + 5722f33 commit 0811575

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

drivers/hid/hid-ids.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,8 @@
770770
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER 0xc52f
771771
#define USB_DEVICE_ID_LOGITECH_UNIFYING_RECEIVER_2 0xc532
772772
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2 0xc534
773-
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED 0xc539
773+
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1 0xc539
774+
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_1 0xc53f
774775
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_POWERPLAY 0xc53a
775776
#define USB_DEVICE_ID_SPACETRAVELLER 0xc623
776777
#define USB_DEVICE_ID_SPACENAVIGATOR 0xc626

drivers/hid/hid-logitech-dj.c

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ static const char consumer_descriptor[] = {
380380
0x75, 0x10, /* REPORT_SIZE (16) */
381381
0x95, 0x02, /* REPORT_COUNT (2) */
382382
0x15, 0x01, /* LOGICAL_MIN (1) */
383-
0x26, 0x8C, 0x02, /* LOGICAL_MAX (652) */
383+
0x26, 0xFF, 0x02, /* LOGICAL_MAX (767) */
384384
0x19, 0x01, /* USAGE_MIN (1) */
385-
0x2A, 0x8C, 0x02, /* USAGE_MAX (652) */
385+
0x2A, 0xFF, 0x02, /* USAGE_MAX (767) */
386386
0x81, 0x00, /* INPUT (Data Ary Abs) */
387387
0xC0, /* END_COLLECTION */
388388
}; /* */
@@ -959,6 +959,7 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
959959
break;
960960
case 0x07:
961961
device_type = "eQUAD step 4 Gaming";
962+
logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
962963
break;
963964
case 0x08:
964965
device_type = "eQUAD step 4 for gamepads";
@@ -968,7 +969,12 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
968969
logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
969970
break;
970971
case 0x0c:
971-
device_type = "eQUAD Lightspeed";
972+
device_type = "eQUAD Lightspeed 1";
973+
logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
974+
workitem.reports_supported |= STD_KEYBOARD;
975+
break;
976+
case 0x0d:
977+
device_type = "eQUAD Lightspeed 1_1";
972978
logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
973979
workitem.reports_supported |= STD_KEYBOARD;
974980
break;
@@ -1832,9 +1838,17 @@ static const struct hid_device_id logi_dj_receivers[] = {
18321838
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
18331839
USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2),
18341840
.driver_data = recvr_type_hidpp},
1841+
{ /* Logitech G700(s) receiver (0xc531) */
1842+
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
1843+
0xc531),
1844+
.driver_data = recvr_type_gaming_hidpp},
18351845
{ /* Logitech lightspeed receiver (0xc539) */
18361846
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
1837-
USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED),
1847+
USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1),
1848+
.driver_data = recvr_type_gaming_hidpp},
1849+
{ /* Logitech lightspeed receiver (0xc53f) */
1850+
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
1851+
USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_1),
18381852
.driver_data = recvr_type_gaming_hidpp},
18391853
{ /* Logitech 27 MHz HID++ 1.0 receiver (0xc513) */
18401854
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_MX3000_RECEIVER),

0 commit comments

Comments
 (0)