[4.2.y-ckt stable] Patch "spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word" has been added to staging queue

Kamal Mostafa kamal at canonical.com
Mon Jan 4 23:21:40 UTC 2016


This is a note to let you know that I have just added a patch titled

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

to the linux-4.2.y-queue branch of the 4.2.y-ckt extended stable tree 
which can be found at:

    http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-4.2.y-queue

This patch is scheduled to be released in version 4.2.8-ckt1.

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 4.2.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Kamal

------

>From f8c12a77d33eb4d648e68635a51aeac62a428c00 Mon Sep 17 00:00:00 2001
From: David Mosberger-Tang <davidm at egauge.net>
Date: Tue, 20 Oct 2015 14:26:47 +0200
Subject: spi: atmel: Fix DMA-setup for transfers with more than 8 bits per
 word

commit 06515f83908d038d9e12ffa3dcca27a1b67f2de0 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 <davidm at egauge.net>
Signed-off-by: Nicolas Ferre <nicolas.ferre at atmel.com>
Signed-off-by: Mark Brown <broonie at kernel.org>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 drivers/spi/spi-atmel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index c9eca34..a89ea0d 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -774,7 +774,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 */
--
1.9.1





More information about the kernel-team mailing list