From: Roman Tereshonkov Date: Mon, 15 Mar 2010 09:06:28 +0000 (+0000) Subject: omap2_mcspi: Flush posted writes X-Git-Tag: v2.6.34-rc7~41^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a330ce2001b290c59fe98c37e981683ef0a75fdf;p=karo-tx-linux.git 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 Signed-off-by: Grant Likely --- diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index d8356af118a8..581bd2169d7b 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,