2013-06-27 06:57:22

by Girish KS

[permalink] [raw]
Subject: [PATCH] spi: s3c64xx: add missing check for polling mode

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 <[email protected]>
---
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


2013-06-27 11:15:40

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] spi: s3c64xx: add missing check for polling mode

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.


Attachments:
(No filename) (558.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments

2013-07-02 06:52:17

by Girish KS

[permalink] [raw]
Subject: Re: [PATCH] spi: s3c64xx: add missing check for polling mode

On Thu, Jun 27, 2013 at 4:45 PM, Mark Brown <[email protected]> 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?

2013-07-02 09:26:42

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] spi: s3c64xx: add missing check for polling mode

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.


Attachments:
(No filename) (200.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments