HID: cp2112: Fix driver not registering GPIO IRQ chip as threaded
authorDanny Kaehn <kaehndan@gmail.com>
Fri, 10 Feb 2023 17:00:44 +0000 (11:00 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:16 +0000 (12:49 +0200)
commitaee32b594f2c2332e73001938a174fb1403193f2
tree649f000b06b60e290ecde2a9037a498defe26de0
parent586a9fe142837614c21089c54cb61f637ebfa2d8
HID: cp2112: Fix driver not registering GPIO IRQ chip as threaded

[ Upstream commit 37f5b858a66543b2b67c0288280af623985abc29 ]

The CP2112 generates interrupts from a polling routine on a thread,
and can only support threaded interrupts. This patch configures the
gpiochip irq chip with this flag, disallowing consumers to request
a hard IRQ from this driver, which resulted in a segfault previously.

Signed-off-by: Danny Kaehn <kaehndan@gmail.com>
Link: https://lore.kernel.org/r/20230210170044.11835-1-kaehndan@gmail.com
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-cp2112.c