]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: bpf: add a BPF to get the touchpad type
authorBenjamin Tissoires <bentiss@kernel.org>
Fri, 3 Apr 2026 16:12:24 +0000 (18:12 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 8 Apr 2026 19:46:00 +0000 (21:46 +0200)
commitaf79443be6c6f1732c2912aa0d50f5bb71c70cf9
tree456ef141d48fe74f41e25965a6761b49c86345e0
parentbb8be68d1280eff1abb697136b54576af218b266
HID: bpf: add a BPF to get the touchpad type

Currently the kernel is scheduled to do this call by itself, but it
requires a kernel v6.18 at least to have the INPUT_PROP set. For older
kernels, we can try to query the property from a HID-BPF probe, and set
a udev property based on that. This way we can provide the information
to old kernels without modifying them.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/220
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/bpf/progs/Generic__touchpad.bpf.c [new file with mode: 0644]