All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: s3c64xx: add missing check for polling mode
@ 2013-06-27  6:56 ` Girish K S
  0 siblings, 0 replies; 5+ messages in thread
From: Girish K S @ 2013-06-27  6:56 UTC (permalink / raw)
  To: linux-kernel, spi-devel-general; +Cc: broonie

After the patch "spi/s3c64xx: Fix non-dmaengine usage"
with commit id 563b444e33810f3120838620c990480304e24e63
submitted by Mark Brown, the spi device detection in polling
mode breaks. This revealed the missing check for polling during
dma prepare. This patch adds the missing check.

Signed-off-by: Girish K S <ks.giri@samsung.com>
---
 drivers/spi/spi-s3c64xx.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index d170cc0..ea82baa 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -434,6 +434,9 @@ static int s3c64xx_spi_prepare_transfer(struct spi_master *spi)
 	dma_cap_mask_t mask;
 	int ret;
 
+	if (is_polling(sdd))
+		return 0;
+
 	dma_cap_zero(mask);
 	dma_cap_set(DMA_SLAVE, mask);
 
-- 
1.7.10.4


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

* [PATCH] spi: s3c64xx: add missing check for polling mode
@ 2013-06-27  6:56 ` Girish K S
  0 siblings, 0 replies; 5+ messages in thread
From: Girish K S @ 2013-06-27  6:56 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A

After the patch "spi/s3c64xx: Fix non-dmaengine usage"
with commit id 563b444e33810f3120838620c990480304e24e63
submitted by Mark Brown, the spi device detection in polling
mode breaks. This revealed the missing check for polling during
dma prepare. This patch adds the missing check.

Signed-off-by: Girish K S <ks.giri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
---
 drivers/spi/spi-s3c64xx.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index d170cc0..ea82baa 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -434,6 +434,9 @@ static int s3c64xx_spi_prepare_transfer(struct spi_master *spi)
 	dma_cap_mask_t mask;
 	int ret;
 
+	if (is_polling(sdd))
+		return 0;
+
 	dma_cap_zero(mask);
 	dma_cap_set(DMA_SLAVE, mask);
 
-- 
1.7.10.4


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

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

* Re: [PATCH] spi: s3c64xx: add missing check for polling mode
  2013-06-27  6:56 ` Girish K S
  (?)
@ 2013-06-27 11:15 ` Mark Brown
  2013-07-02  6:52   ` Girish KS
  -1 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2013-06-27 11:15 UTC (permalink / raw)
  To: Girish K S; +Cc: linux-kernel, spi-devel-general

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

On Thu, Jun 27, 2013 at 12:26:53PM +0530, Girish K S wrote:
> After the patch "spi/s3c64xx: Fix non-dmaengine usage"
> with commit id 563b444e33810f3120838620c990480304e24e63
> submitted by Mark Brown, the spi device detection in polling
> mode breaks. This revealed the missing check for polling during
> dma prepare. This patch adds the missing check.

Applied with a fixed commit message - since the dmaengine stuff was
already in mainline at the time that polling mode was added the isse was
that the patch hadn't been tested with current mainline code.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] spi: s3c64xx: add missing check for polling mode
  2013-06-27 11:15 ` Mark Brown
@ 2013-07-02  6:52   ` Girish KS
  2013-07-02  9:26     ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Girish KS @ 2013-07-02  6:52 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel, spi-devel-general

On Thu, Jun 27, 2013 at 4:45 PM, Mark Brown <broonie@kernel.org> wrote:
> On Thu, Jun 27, 2013 at 12:26:53PM +0530, Girish K S wrote:
>> After the patch "spi/s3c64xx: Fix non-dmaengine usage"
>> with commit id 563b444e33810f3120838620c990480304e24e63
>> submitted by Mark Brown, the spi device detection in polling
>> mode breaks. This revealed the missing check for polling during
>> dma prepare. This patch adds the missing check.
>
> Applied with a fixed commit message - since the dmaengine stuff was
> already in mainline at the time that polling mode was added the isse was
> that the patch hadn't been tested with current mainline code.

Hello Mark, This patch is missing in your pull request for 3.11. is it
possible to add it?

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

* Re: [PATCH] spi: s3c64xx: add missing check for polling mode
  2013-07-02  6:52   ` Girish KS
@ 2013-07-02  9:26     ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2013-07-02  9:26 UTC (permalink / raw)
  To: Girish KS; +Cc: linux-kernel, spi-devel-general

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

On Tue, Jul 02, 2013 at 12:22:14PM +0530, Girish KS wrote:

> Hello Mark, This patch is missing in your pull request for 3.11. is it
> possible to add it?

No, the pull request has already been sent.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-07-02  9:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27  6:56 [PATCH] spi: s3c64xx: add missing check for polling mode Girish K S
2013-06-27  6:56 ` Girish K S
2013-06-27 11:15 ` Mark Brown
2013-07-02  6:52   ` Girish KS
2013-07-02  9:26     ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.