selftests/hid: add test for assigning a given device to hid-generic
We use a well known VID/PID on a driver that doesn't need to talk to the device, ensures we created the device against the target driver, then load our program and ensure we have unbound to this driver and use hid-generic instead. Reviewed-by:Peter Hutterer <peter.hutterer@who-t.net> Acked-by:
Shuah Khan <skhan@linuxfoundation.org> Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-9-2ef1019468df@kernel.org Signed-off-by:
Benjamin Tissoires <bentiss@kernel.org>
Showing
- tools/testing/selftests/hid/hid_bpf.c 79 additions, 1 deletiontools/testing/selftests/hid/hid_bpf.c
- tools/testing/selftests/hid/progs/hid.c 12 additions, 0 deletionstools/testing/selftests/hid/progs/hid.c
- tools/testing/selftests/hid/progs/hid_bpf_helpers.h 5 additions, 1 deletiontools/testing/selftests/hid/progs/hid_bpf_helpers.h
Loading
Please register or sign in to comment