Skip to content

Commit 8941cf8

Browse files
pelwellpopcornmix
authored andcommitted
spi: dw: Let the DMAC set the transfer widths
SPI transfers are of defined length, unlike some UART traffic, so it is safe to let the DMA controller choose a suitable memory width. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent d564927 commit 8941cf8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/spi/spi-dw-dma.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ static int dw_spi_dma_config_tx(struct dw_spi *dws)
330330
txconf.direction = DMA_MEM_TO_DEV;
331331
txconf.dst_addr = dws->dma_addr;
332332
txconf.dst_maxburst = dws->txburst;
333-
txconf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
334333
txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes);
335334
txconf.device_fc = false;
336335

@@ -431,7 +430,6 @@ static int dw_spi_dma_config_rx(struct dw_spi *dws)
431430
rxconf.direction = DMA_DEV_TO_MEM;
432431
rxconf.src_addr = dws->dma_addr;
433432
rxconf.src_maxburst = dws->rxburst;
434-
rxconf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
435433
rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes);
436434
rxconf.device_fc = false;
437435

0 commit comments

Comments
 (0)