public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] omap2_mcspi: Flush posted writes
@ 2010-03-10 10:18 Roman Tereshonkov
  2010-03-10 10:18 ` [PATCH 2/2] omap2_mcspi: small fixes of output data format Roman Tereshonkov
  2010-03-11 22:40 ` [PATCH 1/2] omap2_mcspi: Flush posted writes Tony Lindgren
  0 siblings, 2 replies; 3+ messages in thread
From: Roman Tereshonkov @ 2010-03-10 10:18 UTC (permalink / raw)
  To: linux-omap; +Cc: scott, gadiyar, Roman Tereshonkov

mcspi_write_chconf0 is used to control rx/tx triggering.
Post-write flushing is needed to get the immediate effect.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
---
 drivers/spi/omap2_mcspi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c
index 715c518..35b31fe 100644
--- a/drivers/spi/omap2_mcspi.c
+++ b/drivers/spi/omap2_mcspi.c
@@ -203,6 +203,7 @@ static inline void mcspi_write_chconf0(const struct spi_device *spi, u32 val)
 
 	cs->chconf0 = val;
 	mcspi_write_cs_reg(spi, OMAP2_MCSPI_CHCONF0, val);
+	mcspi_read_cs_reg(spi, OMAP2_MCSPI_CHCONF0);
 }
 
 static void omap2_mcspi_set_dma_req(const struct spi_device *spi,
-- 
1.6.2.rc1.3.g81d3f


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

end of thread, other threads:[~2010-03-11 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 10:18 [PATCH 1/2] omap2_mcspi: Flush posted writes Roman Tereshonkov
2010-03-10 10:18 ` [PATCH 2/2] omap2_mcspi: small fixes of output data format Roman Tereshonkov
2010-03-11 22:40 ` [PATCH 1/2] omap2_mcspi: Flush posted writes Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox