Skip to contentSkip to conversation

HID: logitech-dj: add support of the G700(s) receiver

PATCH In review Benjamin Tissoires 2 participants 3 messages Aug 12, 2019 – Aug 23, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: logitech-dj: add support of the G700(s) receiver

Both the G700 and the G700s are sharing the same receiver. Include support for this receiver in hid-logitech-dj so that userspace can differentiate both.

---
 drivers/hid/hid-logitech-dj.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/hid/hid-logitech-dj.c +5 -0
index c547cba05fbb..d6250b0cb9f8 100644
@@ -959,6 +959,7 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
 		break;
 	case 0x07:
 		device_type = "eQUAD step 4 Gaming";
+		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
 		break;
 	case 0x08:
 		device_type = "eQUAD step 4 for gamepads";
@@ -1832,6 +1833,10 @@ static const struct hid_device_id logi_dj_receivers[] = {
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
 			 USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2),
 	 .driver_data = recvr_type_hidpp},
+	{ /* Logitech G700(s) receiver (0xc531) */
+	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
+		0xc531),
+	 .driver_data = recvr_type_gaming_hidpp},
 	{ /* Logitech lightspeed receiver (0xc539) */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
 		USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED),
Signature · 1 line
2.19.2
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 5 lines · Benjamin Tissoires

Both the G700 and the G700s are sharing the same receiver. Include support for this receiver in hid-logitech-dj so that userspace can differentiate both.

Nice, looks good to me:

Regards,

Hans

Quoted 28 lines
---
  drivers/hid/hid-logitech-dj.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/hid/hid-logitech-dj.c +5 -0
index c547cba05fbb..d6250b0cb9f8 100644
@@ -959,6 +959,7 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
  		break;
  	case 0x07:
  		device_type = "eQUAD step 4 Gaming";
+		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
  		break;
  	case 0x08:
  		device_type = "eQUAD step 4 for gamepads";
@@ -1832,6 +1833,10 @@ static const struct hid_device_id logi_dj_receivers[] = {
  	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
  			 USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2),
  	 .driver_data = recvr_type_hidpp},
+	{ /* Logitech G700(s) receiver (0xc531) */
+	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
+		0xc531),
+	 .driver_data = recvr_type_gaming_hidpp},
  	{ /* Logitech lightspeed receiver (0xc539) */
  	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
  		USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED),
author Applied
#2 lore raw
Quoted 8 lines · Hans de Goede

Hi,

Quoted 4 lines · Benjamin Tissoires

Both the G700 and the G700s are sharing the same receiver. Include support for this receiver in hid-logitech-dj so that userspace can differentiate both.

Quoted 5 lines
Quoted 1 line

Nice, looks good to me:

thanks

Applied to for-5.4/logitech

Cheers,
Benjamin

Quoted 35 lines

Regards,

Hans

Quoted 28 lines
---
  drivers/hid/hid-logitech-dj.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/hid/hid-logitech-dj.c +5 -0
index c547cba05fbb..d6250b0cb9f8 100644
@@ -959,6 +959,7 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
              break;
      case 0x07:
              device_type = "eQUAD step 4 Gaming";
+             logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
              break;
      case 0x08:
              device_type = "eQUAD step 4 for gamepads";
@@ -1832,6 +1833,10 @@ static const struct hid_device_id logi_dj_receivers[] = {
        HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
                       USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2),
       .driver_data = recvr_type_hidpp},
+     { /* Logitech G700(s) receiver (0xc531) */
+       HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
+             0xc531),
+      .driver_data = recvr_type_gaming_hidpp},
      { /* Logitech lightspeed receiver (0xc539) */
        HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
              USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED),