Skip to content

Commit 1156eaf

Browse files
dmosbergergregkh
authored andcommitted
spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word
commit 06515f8 upstream. The DMA-slave configuration depends on the whether <= 8 or > 8 bits are transferred per word, so we need to call atmel_spi_dma_slave_config() with the correct value. Signed-off-by: David Mosberger <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 04b627d commit 1156eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi-atmel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master,
593593

594594
*plen = len;
595595

596-
if (atmel_spi_dma_slave_config(as, &slave_config, 8))
596+
if (atmel_spi_dma_slave_config(as, &slave_config,
597+
xfer->bits_per_word))
597598
goto err_exit;
598599

599600
/* Send both scatterlists */

0 commit comments

Comments
 (0)