]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
HID: logitech-hidpp: Don't use the USB serial for USB devices
authorBastien Nocera <hadess@hadess.net>
Thu, 2 Mar 2023 13:01:16 +0000 (14:01 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 9 Aug 2023 09:37:58 +0000 (11:37 +0200)
commit0a0978743fcabc2ba85f6289a9e3a59807b72671
tree018d5f9e1bc87ac70a4af7bb0b36a0f330cc8048
parent07aec527bf32578d5225b189f91f0f403b042a1b
HID: logitech-hidpp: Don't use the USB serial for USB devices

BugLink: https://bugs.launchpad.net/bugs/2028808
[ Upstream commit 7ad1fe0da0fa91bf920b79ab05ae97bfabecc4f4 ]

For devices that support the 0x0003 feature (Device Information) version 4,
set the serial based on the output of that feature, rather than relying
on the usbhid code setting the USB serial.

This should allow the serial when connected through USB to (nearly)
match the one when connected through a unifying receiver.

For example, on the serials on a G903 wired/wireless mouse:
- Unifying: 4067-e8-ce-cd-45
- USB before patch: 017C385C3837
- USB after patch: c086-e8-ce-cd-45

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20230302130117.3975-1-hadess@hadess.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/hid/hid-logitech-hidpp.c