diff options
author | Chuanhua Han <chuanhua.han@nxp.com> | 2018-10-29 11:11:16 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-16 08:17:20 +0200 |
commit | eb336b9003b1539bb4c4844e87751ff0b9ba1b60 (patch) | |
tree | 1f2aa4650d6a5a638cd402fa2b0ee57144cc626f | |
parent | c7ec7f3866c0c23c5e1919e73ba70e07175303b2 (diff) | |
download | linux-stable-eb336b9003b1539bb4c4844e87751ff0b9ba1b60.tar.gz linux-stable-eb336b9003b1539bb4c4844e87751ff0b9ba1b60.tar.bz2 linux-stable-eb336b9003b1539bb4c4844e87751ff0b9ba1b60.zip |
spi: spi-fsl-dspi: use IRQF_SHARED mode to request IRQ
[ 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>
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 970ffdb976d7..9ab8c52a5ba6 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -1094,8 +1094,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; |