spi: spi-fsl-dspi: use IRQF_SHARED mode to request IRQ

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>
This commit is contained in:
Chuanhua Han 2018-10-29 11:11:16 +08:00 коммит произвёл Mark Brown
Родитель b654aa6f2b
Коммит 13aed23927
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 24D68B725D5487D0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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