mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
media: rockchip: rga: share the interrupt when an external iommu is used
The RGA3 and the corresponding iommu share the interrupt. So in that case, request a shared interrupt so that the iommu driver can request it as well. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
5873cb8ce1
commit
6b7c185537
|
|
@ -767,7 +767,8 @@ static int rga_probe(struct platform_device *pdev)
|
|||
goto err_put_clk;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(rga->dev, irq, rga_isr, 0,
|
||||
ret = devm_request_irq(rga->dev, irq, rga_isr,
|
||||
rga_has_internal_iommu(rga) ? 0 : IRQF_SHARED,
|
||||
dev_name(rga->dev), rga);
|
||||
if (ret < 0) {
|
||||
dev_err(rga->dev, "failed to request irq\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user