Skip to contentSkip to conversation

HID: logitech-hidpp: Add support for G502 X Plus USB mouse

PATCH Applied Stuart Hayhurst 3 participants 3 messages Jul 21 – Aug 3

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

PATCH 1/1 HID: logitech-hidpp: Add support for G502 X Plus USB mouse

The wireless dongle is already supported, this adds detection for the mouse in wired mode. Supports battery reporting.

---
 drivers/hid/hid-logitech-hidpp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hid/hid-logitech-hidpp.c +2 -0
index 90b0184df777..25620494e741 100644
@@ -4647,6 +4647,8 @@ static const struct hid_device_id hidpp_devices[] = {
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC082) },
 	{ /* Logitech G502 Lightspeed Wireless Gaming Mouse over USB */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08D) },
+	{ /* Logitech G502 X Plus Wireless Gaming Mouse over USB */
+	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC095) },
 	{ /* Logitech G703 Gaming Mouse over USB */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC087) },
 	{ /* Logitech G703 Hero Gaming Mouse over USB */
Signature · 1 line
2.53.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Stuart Hayhurst

The wireless dongle is already supported, this adds detection for the mouse in wired mode. Supports battery reporting.

Quoted 20 lines

---
 drivers/hid/hid-logitech-hidpp.c | 2 ++

 1 file changed, 2 insertions(+)
drivers/hid/hid- renamed from drivers/hid/hid-logitech-hidpp.c +0 -0

logitech-hidpp.c
index 90b0184df777..25620494e741 100644

drivers/hid/hid-logitech-hidpp.c +0 -0
@@ -4647,6 +4647,8 @@ static const struct hid_device_id
 hidpp_devices[] = {
  	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC082) },

  { /* Logitech G502 Lightspeed Wireless Gaming Mouse over USB */
    HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08D) },

drivers/hid/hid-logitech-hidpp.c +2 -0
+	{ /* Logitech G502 X Plus Wireless Gaming Mouse over USB */
+	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC095) },

  { /* Logitech G703 Gaming Mouse over USB */ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC087) }, { /* Logitech G703 Hero Gaming Mouse over USB */

maintainer Applied
#2 lore raw
In reply to Stuart Hayhurst
Quoted 13 lines · Stuart Hayhurst

The wireless dongle is already supported, this adds detection for the mouse in wired mode. Supports battery reporting.

---
 drivers/hid/hid-logitech-hidpp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hid/hid-logitech-hidpp.c +0 -0
index 90b0184df777..25620494e741 100644

drivers/hid/hid-logitech-hidpp.c static const struct hid_device_id hidpp_devices[] = { · line 4654

Quoted 8 lines
drivers/hid/hid-logitech-hidpp.c +2 -0
@@ -4647,6 +4647,8 @@ static const struct hid_device_id hidpp_devices[] = {
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC082) },
 	{ /* Logitech G502 Lightspeed Wireless Gaming Mouse over USB */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC08D) },
+	{ /* Logitech G502 X Plus Wireless Gaming Mouse over USB */
+	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC095) },
 	{ /* Logitech G703 Gaming Mouse over USB */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC087) },
 	{ /* Logitech G703 Hero Gaming Mouse over USB */

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs