omap2_mcspi: Flush posted writes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 30, 2010 - 10:59 am

Gitweb:     http://git.kernel.org/linus/a330ce2001b290c59fe98c37e981683ef0a75fdf
Commit:     a330ce2001b290c59fe98c37e981683ef0a75fdf
Parent:     07a389feefd79d41c8542cf31ce1cf25a1466e2c
Author:     Roman Tereshonkov <roman.tereshonkov@nokia.com>
AuthorDate: Mon Mar 15 09:06:28 2010 +0000
Committer:  Grant Likely <grant.likely@secretlab.ca>
CommitDate: Wed Apr 28 01:25:22 2010 -0600

    omap2_mcspi: Flush posted writes
    
    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>
    Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
---
 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 d8356af..581bd21 100644
--- a/drivers/spi/omap2_mcspi.c
+++ b/drivers/spi/omap2_mcspi.c
@@ -204,6 +204,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,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
omap2_mcspi: Flush posted writes, Linux Kernel Mailing ..., (Fri Apr 30, 10:59 am)