mirror of https://gitee.com/openkylin/linux.git
media: coda: Replace the threaded interrupt with a hard interrupt
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 <p.zabel@pengutronix.de> Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
766b9b168f
commit
1405bc55e6
|
@ -2816,8 +2816,8 @@ static int coda_probe(struct platform_device *pdev)
|
||||||
return irq;
|
return irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, coda_irq_handler,
|
ret = devm_request_irq(&pdev->dev, irq, coda_irq_handler, 0,
|
||||||
IRQF_ONESHOT, dev_name(&pdev->dev), dev);
|
dev_name(&pdev->dev), dev);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
dev_err(&pdev->dev, "failed to request irq: %d\n", ret);
|
dev_err(&pdev->dev, "failed to request irq: %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue