diff options
author | 2023-05-30 18:38:18 +0100 | |
---|---|---|
committer | 2023-05-30 18:38:18 +0100 | |
commit | fdc523137457d3547900e3dfbe5fcdd49675f6ba (patch) | |
tree | 9dd79122d566a35d8b93c92e0b77c9590f6a6ebd /drivers/spi/spi-fsl-lpspi.c | |
parent | spi: add SPI_MOSI_IDLE_LOW mode bit (diff) | |
parent | spi: qup: Request DMA before enabling clocks (diff) | |
download | linux-fdc523137457d3547900e3dfbe5fcdd49675f6ba.tar.gz linux-fdc523137457d3547900e3dfbe5fcdd49675f6ba.tar.bz2 linux-fdc523137457d3547900e3dfbe5fcdd49675f6ba.zip |
spi: Merge up fixes to help CI
Get the fixes into CI for development.
Diffstat (limited to 'drivers/spi/spi-fsl-lpspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-lpspi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index d9f8231bcea8..80f7367095ab 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -916,9 +916,14 @@ static int fsl_lpspi_probe(struct platform_device *pdev) ret = fsl_lpspi_dma_init(&pdev->dev, fsl_lpspi, controller); if (ret == -EPROBE_DEFER) goto out_pm_get; - if (ret < 0) dev_err(&pdev->dev, "dma setup error %d, use pio\n", ret); + else + /* + * disable LPSPI module IRQ when enable DMA mode successfully, + * to prevent the unexpected LPSPI module IRQ events. + */ + disable_irq(irq); ret = devm_spi_register_controller(&pdev->dev, controller); if (ret < 0) { |