Merge pull request #321 from BU-Automation/topic/tbi/fix-kbus-dma
drivers: spi: spi-omap2-mcspi: fix rx dma preparation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user