]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
spi: spi-fsl-dspi: use IRQF_SHARED mode to request IRQ
authorChuanhua Han <chuanhua.han@nxp.com>
Mon, 29 Oct 2018 03:11:16 +0000 (11:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:22:15 +0000 (09:22 +0200)
[ Upstream commit 13aed23927414137a017ac2f7d567001f714293f ]

Some SoC share one irq number between DSPI controllers.
For example, on the LX2160 board, DSPI0 and DSPI1 share one irq number.
In this case, only one DSPI controller can register successfully,
and others will fail.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-fsl-dspi.c

index baf5274485004282d4159282bcb7eae8e6a80f2a..4402e531b1bfd8445bc578021e0949901c3f921b 100644 (file)
@@ -1027,8 +1027,8 @@ static int dspi_probe(struct platform_device *pdev)
                goto out_clk_put;
        }
 
-       ret = devm_request_irq(&pdev->dev, dspi->irq, dspi_interrupt, 0,
-                       pdev->name, dspi);
+       ret = devm_request_irq(&pdev->dev, dspi->irq, dspi_interrupt,
+                              IRQF_SHARED, pdev->name, dspi);
        if (ret < 0) {
                dev_err(&pdev->dev, "Unable to attach DSPI interrupt\n");
                goto out_clk_put;