]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-dspi: Fix interrupt-less DMA mode taking an XSPI code path
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 18 Mar 2020 00:15:59 +0000 (02:15 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 18 Mar 2020 22:44:59 +0000 (22:44 +0000)
commit2b2c3c27d6527c1b323502a9dc6341b5a1897bc4
treeee9a76d18feb98fe8c049dacbc265955f294da4e
parentbde058d59e3bc1a459ad9bf2ea899c9fa2720c6b
spi: spi-fsl-dspi: Fix interrupt-less DMA mode taking an XSPI code path

Interrupts are not necessary for DMA functionality, since the completion
event is provided by the DMA driver.

But if the driver fails to request the IRQ defined in the device tree,
it will call dspi_poll which would make the driver hang waiting for data
to become available in the RX FIFO.

Fixes: 772ac0907075 ("spi: spi-fsl-dspi: Use poll mode in case the platform IRQ is missing")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20200318001603.9650-9-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c