HID: logitech-dj: add support for the new lightspeed connection iteration
authorFilipe Laíns <lains@riseup.net>
Sat, 23 Jan 2021 18:02:20 +0000 (18:02 +0000)
committerJiri Kosina <jkosina@suse.cz>
Tue, 9 Feb 2021 09:37:02 +0000 (10:37 +0100)
commitfab3a95654eea01d6b0204995be8b7492a00d001
tree96deca43c5f350c811154dc5e9cb8097f1de11a9
parent2aefba190f17a3f409292ee9fc8f00c20fed411e
HID: logitech-dj: add support for the new lightspeed connection iteration

This new connection type is the new iteration of the Lightspeed
connection and will probably be used in some of the newer gaming
devices. It is currently use in the G Pro X Superlight.

This patch should be backported to older versions, as currently the
driver will panic when seing the unsupported connection. This isn't
an issue when using the receiver that came with the device, as Logitech
has been using different PIDs when they change the connection type, but
is an issue when using a generic receiver (well, generic Lightspeed
receiver), which is the case of the one in the Powerplay mat. Currently,
the only generic Ligthspeed receiver we support, and the only one that
exists AFAIK, is ther Powerplay.

As it stands, the driver will panic when seeing a G Pro X Superlight
connected to the Powerplay receiver and won't send any input events to
userspace! The kernel will warn about this so the issue should be easy
to identify, but it is still very worrying how hard it will fail :(

[915977.398471] logitech-djreceiver 0003:046D:C53A.0107: unusable device of type UNKNOWN (0x0f) connected on slot 1

Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c