HID: logitech-dj: deal with some KVMs adding an extra interface to the usbdev
authorHans de Goede <hdegoede@redhat.com>
Sat, 20 Apr 2019 11:21:59 +0000 (13:21 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 23 Apr 2019 16:01:40 +0000 (18:01 +0200)
commitda12b224b7d514215f4ed978abe03e8100d0426c
treec699d64050f184e4af4cf16beebe0db9b5f0a927
parentaca22a35396c52492cd61965544c134c74daca68
HID: logitech-dj: deal with some KVMs adding an extra interface to the usbdev

My Aten cs1764a KVM adds an extra interface to the receiver through which
it forwards mouse events, if a separate mouse is plugged in next to the
receiver dongle. This interface is present even if no extra mouse is
plugged in.

logitech-dj trying to handle this extra interface causes mouse events send
through the extra interface to not be properly handled.

This commit fixes this by treating any extra interfaces as hid-generic
interfaces.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-logitech-dj.c