Re: mc13xxx-core: kernel hangs after 'regmap_read'
From: Fabio Estevam
Date:  Thu May 24 2012 - 00:07:48 EST
Shawn,
On Wed, May 23, 2012 at 9:48 PM, Shawn Guo <shawn.guo@xxxxxxxxxxxxx> wrote:
> I'm booting my imx51 babbage with MC13892 with no problem now. ÂAnd
> reading the registers give me the same values as I do with u-boot.
Ok, just to confirm: is the patch below that you are using?
diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c
index 3fcdab3..5d1969f 100644
--- a/drivers/mfd/mc13xxx-spi.c
+++ b/drivers/mfd/mc13xxx-spi.c
@@ -49,6 +49,7 @@ static struct regmap_config mc13xxx_regmap_spi_config = {
 	.reg_bits = 7,
 	.pad_bits = 1,
 	.val_bits = 24,
+	.write_flag_mask = 0x80,
 	.max_register = MC13XXX_NUMREGS,
@@ -73,7 +74,6 @@ static int mc13xxx_spi_probe(struct spi_device *spi)
 	dev_set_drvdata(&spi->dev, mc13xxx);
 	spi->mode = SPI_MODE_0 | SPI_CS_HIGH;
-	spi->bits_per_word = 32;
 	mc13xxx->dev = &spi->dev;
 	mutex_init(&mc13xxx->lock);
I am trying to understand why mx31pdk still fails.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/