[U-Boot] [PATCH] kirkwood_spi: fix setting of irq mask

Michael Walle michael at walle.cc
Sat Dec 17 18:28:05 CET 2011


Since the data alignment fault was enabled recently in commit
  arm, arm926ejs: always do cpu critical inits
the driver won't work anymore and all boards which use an environment in an
SPI flash will fail booting.

Signed-off-by: Michael Walle <michael at walle.cc>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
Cc: Prafulla Wadaskar <prafulla at marvell.com>
---
 drivers/spi/kirkwood_spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
index a50e498..9aaecfe 100644
--- a/drivers/spi/kirkwood_spi.c
+++ b/drivers/spi/kirkwood_spi.c
@@ -67,7 +67,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
 	debug("data = 0x%08x \n", data);
 
 	writel(KWSPI_SMEMRDIRQ, &spireg->irq_cause);
-	writel(KWSPI_IRQMASK, spireg->irq_mask);
+	writel(KWSPI_IRQMASK, &spireg->irq_mask);
 
 	/* program mpp registers to select  SPI_CSn */
 	if (cs) {
-- 
1.7.2.5



More information about the U-Boot mailing list