drivers: spi: spi-omap2-mcspi: fix rx dma preparation

Signed-off-by: Tobias Biehl <tobias.biehl@wago.com>
This commit is contained in:
Tobias Biehl
2025-07-15 15:05:15 +02:00
parent 9ee4941fd0
commit 8d2c600322
+2 -2
View File
@@ -553,8 +553,8 @@ omap2_mcspi_rx_dma(struct spi_device *spi, struct spi_transfer *xfer,
unsigned long flags = mcspi->use_eow_interrupt ? DMA_CTRL_ACK
: (DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
tx = dmaengine_prep_slave_sg(mcspi_dma->dma_tx, xfer->tx_sg.sgl,
xfer->tx_sg.nents, DMA_MEM_TO_DEV, flags);
tx = dmaengine_prep_slave_sg(mcspi_dma->dma_rx, sg_out[0],
out_mapped_nents[0], DMA_DEV_TO_MEM, flags);
if (tx) {
if (!mcspi->use_eow_interrupt) {