spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word

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 <davidm@egauge.net>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
This commit is contained in:
David Mosberger-Tang 2015-10-20 14:26:47 +02:00 коммит произвёл Mark Brown
Родитель 6ff33f3902
Коммит 06515f8390
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -773,7 +773,8 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master,
*plen = len;
if (atmel_spi_dma_slave_config(as, &slave_config, 8))
if (atmel_spi_dma_slave_config(as, &slave_config,
xfer->bits_per_word))
goto err_exit;
/* Send both scatterlists */