mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
UPSTREAM: [media] media: rc: gpio-ir-recv: do not allow threaded interrupt handler
Requesting any context irq is not actually great idea since threaded
interrupt handler is run at too unpredictable time which turns
timing information wrong. Fix it by requesting regular interrupt.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
(cherry picked from commit 375929f9f4)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
committed by
Tao Huang
parent
746af9ae16
commit
e07d5a82d6
@@ -161,10 +161,9 @@ static int gpio_ir_recv_probe(struct platform_device *pdev)
|
||||
|
||||
platform_set_drvdata(pdev, gpio_dev);
|
||||
|
||||
rc = request_any_context_irq(gpio_to_irq(pdata->gpio_nr),
|
||||
gpio_ir_recv_irq,
|
||||
IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
|
||||
"gpio-ir-recv-irq", gpio_dev);
|
||||
rc = request_irq(gpio_to_irq(pdata->gpio_nr), gpio_ir_recv_irq,
|
||||
IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
|
||||
"gpio-ir-recv-irq", gpio_dev);
|
||||
if (rc < 0)
|
||||
goto err_request_irq;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user