[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>
This commit is contained in:
parent
52ea799107
commit
375929f9f4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue