We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5ee75 commit 3d6224eCopy full SHA for 3d6224e
drivers/spi/spi-fsl-dspi.c
@@ -1192,8 +1192,10 @@ static int dspi_slave_abort(struct spi_master *master)
1192
* Terminate all pending DMA transactions for the SPI working
1193
* in SLAVE mode.
1194
*/
1195
- dmaengine_terminate_sync(dspi->dma->chan_rx);
1196
- dmaengine_terminate_sync(dspi->dma->chan_tx);
+ if (dspi->devtype_data->trans_mode == DSPI_DMA_MODE) {
+ dmaengine_terminate_sync(dspi->dma->chan_rx);
1197
+ dmaengine_terminate_sync(dspi->dma->chan_tx);
1198
+ }
1199
1200
/* Clear the internal DSPI RX and TX FIFO buffers */
1201
regmap_update_bits(dspi->regmap, SPI_MCR,
0 commit comments