Re: mc13xxx-core: kernel hangs after 'regmap_read'

From: Fabio Estevam
Date: Wed May 23 2012 - 11:29:54 EST


On Wed, May 23, 2012 at 11:18 AM, Fabio Estevam <festevam@xxxxxxxxx> wrote:

> Removing only the line that sets bits_per_word:
>
> --- a/drivers/mfd/mc13xxx-spi.c
> +++ b/drivers/mfd/mc13xxx-spi.c
> @@ -73,7 +73,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);
>
>
> , does allow the kernel to boot, but the mx13xxx driver is not probed anymore:

The reason for the mc13xxx not probing is because it tries to read the
mc13xxx version register and does not find a valid PMIC ID.

I did a dump of all the mc13xxx registers and all of them return the
same value of 0x810, which means we are not reading SPI correctly via
regmap.
--
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/