Re: [PATCH 04/16] spi/imx: save the spi chip select in config struct, not the gpio to use

2010-09-19 Thread Jason Wang
Russell King - ARM Linux wrote: > On Fri, Sep 17, 2010 at 01:11:14PM +0200, Lothar Waßmann wrote: > >> Hi, >> >> >>> diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c >>> index 60a52d1..23db984 100644 >>> --- a/drivers/spi/spi_imx.c >>> +++ b/drivers/spi/spi_imx.c >>> @@ -56,7 +56,

Re: [PATCH 04/16] spi/imx: save the spi chip select in config struct, not the gpio to use

2010-09-17 Thread Russell King - ARM Linux
On Fri, Sep 17, 2010 at 01:11:14PM +0200, Lothar Waßmann wrote: > Hi, > > > diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c > > index 60a52d1..23db984 100644 > > --- a/drivers/spi/spi_imx.c > > +++ b/drivers/spi/spi_imx.c > > @@ -56,7 +56,7 @@ struct spi_imx_config { > > unsigned in

Re: [PATCH 04/16] spi/imx: save the spi chip select in config struct, not the gpio to use

2010-09-17 Thread Lothar Waßmann
Hi, > diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c > index 60a52d1..23db984 100644 > --- a/drivers/spi/spi_imx.c > +++ b/drivers/spi/spi_imx.c > @@ -56,7 +56,7 @@ struct spi_imx_config { > unsigned int speed_hz; > unsigned int bpw; > unsigned int mode; > - int c

[PATCH 04/16] spi/imx: save the spi chip select in config struct, not the gpio to use

2010-09-17 Thread Uwe Kleine-König
This prepares adding support for imx51's eCSPI. This IP has seperate control and config bits for all four supported chip selects, so the config routine needs to know which chip select is being used even if the chipselect is realized by a gpio. Signed-off-by: Uwe Kleine-König --- drivers/spi/spi