Commit 4e92c5e8 authored by Danny Kaehn's avatar Danny Kaehn Committed by openeuler-sync-bot
Browse files

HID: cp2112: Fix driver not registering GPIO IRQ chip as threaded

stable inclusion
from stable-v5.10.177
commit 3d8fafc5308f7657f93b9514556960936c79917c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3d8fafc5308f7657f93b9514556960936c79917c



--------------------------------

[ Upstream commit 37f5b858 ]

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: default avatarDanny Kaehn <kaehndan@gmail.com>
Link: https://lore.kernel.org/r/20230210170044.11835-1-kaehndan@gmail.com


Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit b6de9b4f)
parent 556c6dc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment