]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: bpf: rescan the device for the group after a load/unload
authorBenjamin Tissoires <bentiss@kernel.org>
Thu, 21 Aug 2025 14:38:14 +0000 (16:38 +0200)
committerJiri Kosina <jkosina@suse.com>
Fri, 12 Sep 2025 15:11:55 +0000 (17:11 +0200)
commit4c2c5ff9f3d72fb41f884f7c493ae9df83379340
tree6fcff8d14fcf39d53874735d08ab7f23aa3a593f
parent4e411a3f7bba10579bbeec3af77ae2a05c9e4259
HID: bpf: rescan the device for the group after a load/unload

When a BPF gets loaded, it was previously not possible to bind a
hid-generic device to hid-multitouch because the group was never
updated.

This change forces a rescan of the report descriptor after a bpf is
loaded/unloaded so we set up the proper group.

This was detected while Peter was trying to fix a Viewsonic device: the
HID device sending multiotuch data through a proprietary collection was
handled by hid-generic, and we don't have any way of attaching it to
hid-multitouch because the pre-scanning wasn't able to see the Contact
ID HID usage.

Suggested-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-core.c