]> git.ipfire.org Git - thirdparty/linux.git/commit
HID: bpf: Add fixup for Logitech SpaceNavigator variants
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 18 Nov 2025 17:16:25 +0000 (18:16 +0100)
committerJiri Kosina <jkosina@suse.com>
Thu, 20 Nov 2025 15:45:58 +0000 (16:45 +0100)
commit029dff1c31c488e85c666d5e7e992700cd57462b
tree343fdedf3a11c54f769b9d355448f490a91f3eb0
parent0412be1b8125204a15930128c2a1ed73b0f59f84
HID: bpf: Add fixup for Logitech SpaceNavigator variants

The 3Dconnexion SpaceNavigator HID report descriptor declares its axis
data to be "relative" when it is actually "absolute".  This quirk was
addressed in the kernel in 2.6.33, but some SpaceNavigator variants have
a slightly different report descriptor whose axis input items are at
different offsets than those assumed by the kernel fixup.

Add a BPF fixup to handle both sets of offsets for known SpaceNavigator
variants if the descriptor has not already been fixed by the kernel.

Signed-off-by: Curran Muhlberger <curran@cs.cornell.edu>
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/181
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/bpf/progs/Logitech__SpaceNavigator.bpf.c [new file with mode: 0644]