]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: add per device quirk to force bind to hid-generic
authorBenjamin Tissoires <bentiss@kernel.org>
Tue, 1 Oct 2024 14:30:12 +0000 (16:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:39 +0000 (20:03 +0100)
commitea74e9675b8ef13c3b8c00887ea28b81eebd43e3
tree0c55cc28ad4edfd4d6aeeacabc5e01ddc2582e1a
parent46b99cadaef4a6e79b023049f486fc81e6dfc5fc
HID: add per device quirk to force bind to hid-generic

[ Upstream commit 645c224ac5f6e0013931c342ea707b398d24d410 ]

We already have the possibility to force not binding to hid-generic and
rely on a dedicated driver, but we couldn't do the other way around.

This is useful for BPF programs where we are fixing the report descriptor
and the events, but want to avoid a specialized driver to come after BPF
which would unwind everything that is done there.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-8-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-core.c
drivers/hid/hid-generic.c
include/linux/hid.h