Revert "HID: logitech-hidpp: Remove special-casing of Bluetooth devices"
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 7 Dec 2022 14:24:32 +0000 (15:24 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 8 Dec 2022 19:18:11 +0000 (20:18 +0100)
commit40f2432b53a01b6d5e3a9057f1d5c406930e1360
tree64d106959e5b5e3f2a16d2cf4e81db7f349b34a2
parentf6d910a89a2391e5ce1f275d205023880a33d3f8
Revert "HID: logitech-hidpp: Remove special-casing of Bluetooth devices"

This reverts commit 8544c812e43ab7bdf40458411b83987b8cba924d.

We need to revert commit 532223c8ac57 ("HID: logitech-hidpp: Enable HID++
for all the Logitech Bluetooth devices") because that commit might make
hid-logitech-hidpp bind on mice that are not well enough supported by
hid-logitech-hidpp, and the end result is that the probe of those mice
is now returning -ENODEV, leaving the end user with a dead mouse.

Given that commit 8544c812e43a ("HID: logitech-hidpp: Remove special-casing
of Bluetooth devices") is a direct dependency of 532223c8ac57, revert it
too.

Note that this also adapt according to commit 908d325e1665 ("HID:
logitech-hidpp: Detect hi-res scrolling support") to re-add support of
the devices that were removed from that commit too.

I have locally an MX Master and I tested this device with that revert,
ensuring we still have high-res scrolling.

Reported-by: Rafael J . Wysocki <rjw@rjwysocki.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c