From: Ladislav Michl Date: Thu, 7 Sep 2017 23:37:36 +0000 (-0300) Subject: [media] media: rc: gpio-ir-recv: do not allow threaded interrupt handler X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=375929f9f48356e862789c72ddc1175d89866f44;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c index ae5f9099c8a6..d82ddf906695 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c @@ -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;