LinuxTV Patchwork [v2,3/4] media: coda: Replace the threaded interrupt with a hard interrupt

mail settings
Submitter Ezequiel Garcia
Date May 2, 2019, 10 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/55993/
State New
Delegated to: Hans Verkuil
Headers show


Ezequiel Garcia - May 2, 2019, 10 p.m.
The current interrupt handler is doing very little, and not doing
any non-atomic operations. Pretty much all it does is accessing
a couple registers, taking a couple spinlocks and then signalling
a completion.

There is no reason this should be a threaded interrupt handler,
so move the handler to regular hard interrupt context.

Reviewed-by: Philipp Zabel <>
Signed-off-by: Ezequiel Garcia <>
 drivers/media/platform/coda/coda-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index 39421ded5c63..a8848a4e927a 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -2789,8 +2789,8 @@  static int coda_probe(struct platform_device *pdev)
 		return irq;
-	ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, coda_irq_handler,
-			IRQF_ONESHOT, dev_name(&pdev->dev), dev);
+	ret = devm_request_irq(&pdev->dev, irq, coda_irq_handler, 0,
+			       dev_name(&pdev->dev), dev);
 	if (ret < 0) {
 		dev_err(&pdev->dev, "failed to request irq: %d\n", ret);
 		return ret;

Privacy Policy