linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5 v2] spi-topcliff-pch: add tx-memory clear after complete transmitting
@ 2011-09-06  8:16 Tomoya MORINAGA
  2011-09-06  8:16 ` [PATCH 2/5 v2] spi-topcliff-pch: Fix SSN Control issue Tomoya MORINAGA
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tomoya MORINAGA @ 2011-09-06  8:16 UTC (permalink / raw)
  To: Grant Likely, spi-devel-general, linux-kernel
  Cc: qi.wang, yong.y.wang, joel.clark, kok.howg.ewe, toshiharu-linux,
	Tomoya MORINAGA

Currently, in case of reading date from SPI flash,
command is sent twice.
The cause is that tx-memory clear processing is missing .
This patch adds the tx-momory clear processing.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
---
v2: v1 patch series are included invalid patch file
---
 drivers/spi/spi-topcliff-pch.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c
index 1d23f38..7a98caa 100644
--- a/drivers/spi/spi-topcliff-pch.c
+++ b/drivers/spi/spi-topcliff-pch.c
@@ -837,6 +837,11 @@ static void pch_spi_start_transfer(struct pch_spi_data *data)
 
 	dma_sync_sg_for_cpu(&data->master->dev, dma->sg_rx_p, dma->nent,
 			    DMA_FROM_DEVICE);
+
+	dma_sync_sg_for_cpu(&data->master->dev, dma->sg_tx_p, dma->nent,
+			    DMA_FROM_DEVICE);
+	memset(data->dma.tx_buf_virt, 0, PAGE_SIZE);
+
 	async_tx_ack(dma->desc_rx);
 	async_tx_ack(dma->desc_tx);
 	kfree(dma->sg_tx_p);
-- 
1.7.4.4

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

end of thread, other threads:[~2011-10-04 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06  8:16 [PATCH 1/5 v2] spi-topcliff-pch: add tx-memory clear after complete transmitting Tomoya MORINAGA
2011-09-06  8:16 ` [PATCH 2/5 v2] spi-topcliff-pch: Fix SSN Control issue Tomoya MORINAGA
2011-09-06  8:16 ` [PATCH 3/5 v2] spi-topcliff-pch: Fix CPU read complete condition issue Tomoya MORINAGA
     [not found] ` <1315296998-7296-1-git-send-email-tomoya-linux-ECg8zkTtlr0C6LszWs/t0g@public.gmane.org>
2011-09-06  8:16   ` [PATCH 4/5 v2] spi-topcliff-pch: Add recovery processing in case FIFO overrun error occurs Tomoya MORINAGA
2011-09-06  8:16   ` [PATCH 5/5 v2] spi-topcliff-pch: Fix overrun issue Tomoya MORINAGA
2011-10-04 16:15 ` [PATCH 1/5 v2] spi-topcliff-pch: add tx-memory clear after complete transmitting Grant Likely

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).