linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word.
@ 2015-10-19 20:54 David Mosberger-Tang
       [not found] ` <1445288084-31805-1-git-send-email-davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: David Mosberger-Tang @ 2015-10-19 20:54 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA, Nicolas Ferre
  Cc: David Mosberger-Tang,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w

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-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
---
 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 04e48e5..855cc56 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -758,7 +758,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

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word.
       [not found] ` <1445288084-31805-1-git-send-email-davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
@ 2015-10-20 10:22   ` Nicolas Ferre
       [not found]     ` <562615E1.4030407-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
  2015-10-20 12:26   ` [RESEND PATCH] " Nicolas Ferre
  2015-10-22 23:10   ` Applied "spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word" to the spi tree Mark Brown
  2 siblings, 1 reply; 6+ messages in thread
From: Nicolas Ferre @ 2015-10-20 10:22 UTC (permalink / raw)
  To: David Mosberger-Tang, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	Mark Brown
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w

Le 19/10/2015 22:54, David Mosberger-Tang a écrit :
> 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-haPfTeumbwasTnJN9+BGXg@public.gmane.org>

Thanks for having rewritten this patch! It's much more simple like this ;-)

Acked-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>

For Mark, here is the patchwork entry which can be handy:
https://patchwork.kernel.org/patch/7439931/

Best regards,

> ---
>  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 04e48e5..855cc56 100644
> --- a/drivers/spi/spi-atmel.c
> +++ b/drivers/spi/spi-atmel.c
> @@ -758,7 +758,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 */
> 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word.
       [not found]     ` <562615E1.4030407-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
@ 2015-10-20 10:27       ` Mark Brown
       [not found]         ` <20151020102726.GX32054-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2015-10-20 10:27 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: David Mosberger-Tang, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w

[-- Attachment #1: Type: text/plain, Size: 429 bytes --]

On Tue, Oct 20, 2015 at 12:22:25PM +0200, Nicolas Ferre wrote:

> Thanks for having rewritten this patch! It's much more simple like this ;-)

> Acked-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>

> For Mark, here is the patchwork entry which can be handy:
> https://patchwork.kernel.org/patch/7439931/

No, please submit the patch via e-mail as covered in SubmittingPatches
and as I said yesterday.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [RESEND PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word
       [not found] ` <1445288084-31805-1-git-send-email-davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
  2015-10-20 10:22   ` Nicolas Ferre
@ 2015-10-20 12:26   ` Nicolas Ferre
  2015-10-22 23:10   ` Applied "spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word" to the spi tree Mark Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Nicolas Ferre @ 2015-10-20 12:26 UTC (permalink / raw)
  To: Mark Brown, davidm-haPfTeumbwasTnJN9+BGXg
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-spi-u79uwXL29TY76Z2rM5mHXA,
	cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w, Nicolas Ferre

From: David Mosberger-Tang <davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>

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-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
---
 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 1cc1f1e0d17f..0b6e5ecbc752 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -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 */
-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word.
       [not found]         ` <20151020102726.GX32054-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2015-10-20 12:26           ` Nicolas Ferre
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Ferre @ 2015-10-20 12:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: David Mosberger-Tang, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w

Le 20/10/2015 12:27, Mark Brown a écrit :
> On Tue, Oct 20, 2015 at 12:22:25PM +0200, Nicolas Ferre wrote:
> 
>> Thanks for having rewritten this patch! It's much more simple like this ;-)
> 
>> Acked-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
> 
>> For Mark, here is the patchwork entry which can be handy:
>> https://patchwork.kernel.org/patch/7439931/
> 
> No, please submit the patch via e-mail as covered in SubmittingPatches
> and as I said yesterday.

Done right now ;-)

Thanks, bye,
-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Applied "spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word" to the spi tree
       [not found] ` <1445288084-31805-1-git-send-email-davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
  2015-10-20 10:22   ` Nicolas Ferre
  2015-10-20 12:26   ` [RESEND PATCH] " Nicolas Ferre
@ 2015-10-22 23:10   ` Mark Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2015-10-22 23:10 UTC (permalink / raw)
  To: David Mosberger, Nicolas Ferre, Mark Brown,
	stable-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA

The patch

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

has been applied to the spi tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 06515f83908d038d9e12ffa3dcca27a1b67f2de0 Mon Sep 17 00:00:00 2001
From: David Mosberger-Tang <davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
Date: Tue, 20 Oct 2015 14:26:47 +0200
Subject: [PATCH] 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-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
Signed-off-by: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---
 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 bf9ed38..41d95a6 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -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 */
-- 
2.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-22 23:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 20:54 [PATCH] spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word David Mosberger-Tang
     [not found] ` <1445288084-31805-1-git-send-email-davidm-haPfTeumbwasTnJN9+BGXg@public.gmane.org>
2015-10-20 10:22   ` Nicolas Ferre
     [not found]     ` <562615E1.4030407-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2015-10-20 10:27       ` Mark Brown
     [not found]         ` <20151020102726.GX32054-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-10-20 12:26           ` Nicolas Ferre
2015-10-20 12:26   ` [RESEND PATCH] " Nicolas Ferre
2015-10-22 23:10   ` Applied "spi: atmel: Fix DMA-setup for transfers with more than 8 bits per word" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).