Linux/linux 2d05dba — drivers/hid hid-cp2112.c
HID: cp2112: prevent sleeping function called from invalid context When calling request_threaded_irq() with a CP2112, the function cp2112_gpio_irq_startup() is called in a IRQ context. Therefore we can not sleep, and we can not call cp2112_gpio_direction_input() there. Move the call to cp2112_gpio_direction_input() earlier to have a working driver. Signed-off-by: Benjamin Tissoires <benjamin.tissoires at redhat.com> Signed-off-by: Jiri Kosina <jkosina at suse.cz>
Delta | File | |
---|---|---|
+6 | -2 | drivers/hid/hid-cp2112.c |
+6 | -2 | 1 files |