All of lore.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; 4+ 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] 4+ messages in thread
* [PATCH 1/2] omap2_mcspi: Flush posted writes
@ 2010-03-15  9:06 Roman Tereshonkov
  0 siblings, 0 replies; 4+ messages in thread
From: Roman Tereshonkov @ 2010-03-15  9:06 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f, Roman Tereshonkov,
	scott-oZqG5KApg2M/jFmSBShxMA, gadiyar-l0cyMroinI0

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-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
---
 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 bf5f95a..3b50d07 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


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

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

end of thread, other threads:[~2010-03-15  9:06 UTC | newest]

Thread overview: 4+ 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
  -- strict thread matches above, loose matches on Subject: below --
2010-03-15  9:06 Roman Tereshonkov

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.