Re: [PATCH v2 1/7] spi/imx: do not make copy of spi_imx_devtype_data

2011-07-11 Thread Lothar Waßmann
Uwe Kleine-König writes: > On Mon, Jul 11, 2011 at 09:15:34AM +0200, Lothar Waßmann wrote: > > Hi, > > > > Shawn Guo writes: > > > spi_imx_devtype_data has already been driver private data. There is > > > really no need to make a copy in spi_imx_data. Instead, a reference > > > pointer works per

Re: [PATCH v2 6/7] spi/imx: copy gpio number passed by platform data into driver private data

2011-07-11 Thread Uwe Kleine-König
On Sun, Jul 10, 2011 at 01:16:40AM +0800, Shawn Guo wrote: > It copies gpio number passed via platform data embedded pointer into > driver private data, so that we do not need to refer to this embedded > pointer passed by platform data after probe function exits. > > Signed-off-by: Shawn Guo > Cc

Re: [PATCH v2 4/7] spi/imx: merge type SPI_IMX_VER_0_7 into SPI_IMX_VER_0_4

2011-07-11 Thread Uwe Kleine-König
On Sun, Jul 10, 2011 at 01:16:38AM +0800, Shawn Guo wrote: > The only difference between SPI_IMX_VER_0_7 and SPI_IMX_VER_0_4 is > .config function. The patch uses cpu_is_mx35 (to be removed) as the > temporary solution to consolidate functions spi_imx0_4_config and > spi_imx0_7_config into mx31_co

Re: [PATCH v2 2/7] spi/imx: use mx21 to name SPI_IMX_VER_0_0 function and macro

2011-07-11 Thread Uwe Kleine-König
On Sun, Jul 10, 2011 at 01:16:36AM +0800, Shawn Guo wrote: > SPI_IMX_VER_0_0 covers i.mx21 and i.mx27. It makes more sense to > use mx21 rather than mx27 to name SPI_IMX_VER_0_0 function and > macro, since i.mx21 comes out ealier than i.mx27. > > Signed-off-by: Shawn Guo > Cc: Uwe Kleine-König

Re: [PATCH v2 1/7] spi/imx: do not make copy of spi_imx_devtype_data

2011-07-11 Thread Lothar Waßmann
Hi, Shawn Guo writes: > spi_imx_devtype_data has already been driver private data. There is > really no need to make a copy in spi_imx_data. Instead, a reference > pointer works perfectly fine. > You obviously overlooked, that the copy is done on purpose to keep only the data that is actually n

Re: [PATCH v2 1/7] spi/imx: do not make copy of spi_imx_devtype_data

2011-07-11 Thread Lothar Waßmann
Hi, Shawn Guo writes: > On Mon, Jul 11, 2011 at 09:15:34AM +0200, Lothar Waßmann wrote: > > Hi, > > > > Shawn Guo writes: > > > spi_imx_devtype_data has already been driver private data. There is > > > really no need to make a copy in spi_imx_data. Instead, a reference > > > pointer works perfe

Re: [PATCH v2 1/7] spi/imx: do not make copy of spi_imx_devtype_data

2011-07-11 Thread Uwe Kleine-König
On Mon, Jul 11, 2011 at 09:15:34AM +0200, Lothar Waßmann wrote: > Hi, > > Shawn Guo writes: > > spi_imx_devtype_data has already been driver private data. There is > > really no need to make a copy in spi_imx_data. Instead, a reference > > pointer works perfectly fine. > > > You obviously overl

Re: [PATCH v2 1/7] spi/imx: do not make copy of spi_imx_devtype_data

2011-07-11 Thread Shawn Guo
On Mon, Jul 11, 2011 at 09:15:34AM +0200, Lothar Waßmann wrote: > Hi, > > Shawn Guo writes: > > spi_imx_devtype_data has already been driver private data. There is > > really no need to make a copy in spi_imx_data. Instead, a reference > > pointer works perfectly fine. > > > You obviously overl