Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-28 Thread Florian Fainelli
Hello, On Thursday 27 September 2012 23:51:51 dani wrote: > I've made this change in the spi-bcm63xx module > > @@ -103,7 +103,7 @@ > { > u8 bits_per_word; > > - bits_per_word = (t) ? t->bits_per_word : spi->bits_per_word; > + bits_per_word = (t && t->bits_per_word) ? t->bits_per_

Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-27 Thread dani
I've made this change in the spi-bcm63xx module @@ -103,7 +103,7 @@ { u8 bits_per_word; - bits_per_word = (t) ? t->bits_per_word : spi->bits_per_word; + bits_per_word = (t && t->bits_per_word) ? t->bits_per_word : spi->bits_per_word; if (bits_per_word != 8) {

Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-26 Thread Florian Fainelli
On Wednesday 26 September 2012 22:35:00 dani wrote: > Ok, I started again with a clean kernel. These are exactly the changes I've made > > > --- board_livebox 1.c 2012-09-26 21:25:19.0 +0200 > +++ board_livebox.c 2012-09-26 22:13:01.095795124 +0200 > @@ -17,6 +17,7 @@ > #include > #

Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-26 Thread dani
Ok, I started again with a clean kernel. These are exactly the changes I've made --- board_livebox 1.c 2012-09-26 21:25:19.0 +0200 +++ board_livebox.c 2012-09-26 22:13:01.095795124 +0200 @@ -17,6 +17,7 @@ #include #include #include + #include #include #include #include

Re: [OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-26 Thread Florian Fainelli
Hello, On Wednesday 26 September 2012 14:41:51 dani wrote: > Hi, I'm trying to make a micro sd card work connected to a bcm6348 board > (livebox 1) SPI pins. I guessed the platform file of my device should be > modified in order to make the kernel comunicate with the mmc_spi and > recognice the mi

[OpenWrt-Devel] mmc_spi on bcm6348 board

2012-09-26 Thread dani
Hi, I'm trying to make a micro sd card work connected to a bcm6348 board (livebox 1) SPI pins. I guessed the platform file of my device should be modified in order to make the kernel comunicate with the mmc_spi and recognice the microsd card. I added this code in my platform data file (board_liveb