On Sat, 22 Nov 2008 12:19:12 -0800 David Brownell <[EMAIL PROTECTED]> wrote:

> From: Ben Dooks <[EMAIL PROTECTED]>
> 
> The spi master driver must have num_chipselect set to
> allow the bus to initialise. Pass this through the
> platform data.
> 
> Signed-off-by: Ben Dooks <[EMAIL PROTECTED]>
> Signed-off-by: David Brownell <[EMAIL PROTECTED]>
> ---
>  arch/arm/mach-s3c2410/include/mach/spi-gpio.h |    1 +
>  drivers/spi/spi_s3c24xx_gpio.c                |    1 +
>  2 files changed, 2 insertions(+)
> 
> --- a/arch/arm/mach-s3c2410/include/mach/spi-gpio.h
> +++ b/arch/arm/mach-s3c2410/include/mach/spi-gpio.h
> @@ -18,6 +18,7 @@ struct s3c2410_spigpio_info {
>       unsigned long            pin_mosi;
>       unsigned long            pin_miso;
>  
> +     int                      num_chipselect;
>       int                      bus_num;
>  
>       void (*chip_select)(struct s3c2410_spigpio_info *spi, int cs);
> --- a/drivers/spi/spi_s3c24xx_gpio.c
> +++ b/drivers/spi/spi_s3c24xx_gpio.c
> @@ -118,6 +118,7 @@ static int s3c2410_spigpio_probe(struct 
>       /* setup spi bitbang adaptor */
>       sp->bitbang.master = spi_master_get(master);
>       sp->bitbang.master->bus_num = info->bus_num;
> +     sp->bitbang.master->num_chipselect = info->num_chipselect;
>       sp->bitbang.chipselect = s3c2410_spigpio_chipselect;
>  
>       sp->bitbang.txrx_word[SPI_MODE_0] = s3c2410_spigpio_txrx_mode0;

What are the consequences of not having this fix in one's kernel?

(ie: which kernel versions need this fix?)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to