]> git.baikalelectronics.ru Git - kernel.git/commit
HID: logitech-dj: Fix Dinovo Mini when paired with a MX5x00 receiver
authorHans de Goede <hdegoede@redhat.com>
Sat, 14 Nov 2020 21:20:56 +0000 (22:20 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 19 Nov 2020 15:27:51 +0000 (16:27 +0100)
commitb4c00e7976636f33a4f67eab436a11666c8afd60
tree4d4b052d360c7dd785df074da24822221fb6fc54
parenteec231e060fb79923c349f6e89f022b286f32c1e
HID: logitech-dj: Fix Dinovo Mini when paired with a MX5x00 receiver

Some users are pairing the Dinovo keyboards with the MX5000 or MX5500
receivers, instead of with the Dinovo receivers. The receivers are
mostly the same (and the air protocol obviously is compatible) but
currently the Dinovo receivers are handled by hid-lg.c while the
MX5x00 receivers are handled by logitech-dj.c.

When using a Dinovo keyboard, with its builtin touchpad, through
logitech-dj.c then the touchpad stops working because when asking the
receiver for paired devices, we get only 1 paired device with
a device_type of REPORT_TYPE_KEYBOARD. And since we don't see a paired
mouse, we have nowhere to send mouse-events to, so we drop them.

Extend the existing fix for the Dinovo Edge for this to also cover the
Dinovo Mini keyboard and also add a mapping to logitech-hidpp for the
Media key on the Dinovo Mini, so that that keeps working too.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1811424
Fixes: f2113c3020ef ("HID: logitech-dj: add support for Logitech Bluetooth Mini-Receiver")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-logitech-hidpp.c