]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: mcp2221: don't connect hidraw
authorEnrik Berkhan <Enrik.Berkhan@inka.de>
Thu, 3 Nov 2022 22:27:12 +0000 (23:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:52 +0000 (13:26 +0100)
commit5fe93672cd0669971cd262e7c4c22efbf4fb437b
tree012a6cf24705ee5bc9409885357c26f1e017a4e3
parent1829287dd5b407f2935c0f3e9e054d8951341d90
HID: mcp2221: don't connect hidraw

commit 67c90d14018775556d5420382ace86521421f9ff upstream.

The MCP2221 driver should not connect to the hidraw userspace interface,
as it needs exclusive access to the chip.

If you want to use /dev/hidrawX with the MCP2221, you need to avoid
binding this driver to the device and use the hid generic driver instead
(e.g. using udev rules).

Cc: stable@vger.kernel.org
Reported-by: Sven Zühlsdorf <sven.zuehlsdorf@vigem.de>
Signed-off-by: Enrik Berkhan <Enrik.Berkhan@inka.de>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20221103222714.21566-2-Enrik.Berkhan@inka.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-mcp2221.c