blob: 31562bfb04ce93ace534d7f4f810b219d2f88ccd [file] [log] [blame]
developerec4ebe42022-04-12 11:17:45 +08001--- a/drivers/spi/spi-mt65xx.c
2+++ b/drivers/spi/spi-mt65xx.c
3@@ -946,12 +946,10 @@ static int mtk_spi_mem_exec_op(struct sp
4 reg_val &= ~SPI_CMD_RX_DMA;
5 writel(reg_val, mdata->base + SPI_CMD_REG);
6
7+unmap_rx_dma:
8 if (op->data.dir == SPI_MEM_DATA_IN)
9 dma_unmap_single(mdata->dev, mdata->rx_dma,
10 op->data.nbytes, DMA_FROM_DEVICE);
11-unmap_rx_dma:
12- dma_unmap_single(mdata->dev, mdata->rx_dma,
13- op->data.nbytes, DMA_FROM_DEVICE);
14 unmap_tx_dma:
15 dma_unmap_single(mdata->dev, mdata->tx_dma,
16 tx_size, DMA_TO_DEVICE);