]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: rockchip: rga: share the interrupt when an external iommu is used
authorMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 20 May 2026 22:44:26 +0000 (00:44 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 21 May 2026 10:32:20 +0000 (12:32 +0200)
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>
drivers/media/platform/rockchip/rga/rga.c

index e3c99c3f7c5be4a63a0e9a1f44d40b0f5f58527c..cda3cecb1ce8c9df70185802cbcdd3e6e227831a 100644 (file)
@@ -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");