Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-15 Thread Naveen Krishna Ch
Hello Tomasz, On 15 July 2014 22:25, Tomasz Figa wrote: > Hi Naveen, > > On 14.07.2014 07:41, Naveen Krishna Chatradhi wrote: >> Since, (3146bee spi: s3c64xx: Added provision for dedicated cs pin) >> >> spi-s3c64xx.c driver expects >> 1. chip select gpios from "cs-gpio"(singular) under the >>

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-15 Thread Tomasz Figa
On 15.07.2014 19:21, Naveen Krishna Ch wrote: > Hello Tomasz, > > On 15 July 2014 22:25, Tomasz Figa wrote: >> Hi Naveen, >> >> On 14.07.2014 07:41, Naveen Krishna Chatradhi wrote: >>> Since, (3146bee spi: s3c64xx: Added provision for dedicated cs pin) >>> >>> spi-s3c64xx.c driver expects >>> 1.

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-15 Thread Tomasz Figa
Hi Naveen, On 14.07.2014 07:41, Naveen Krishna Chatradhi wrote: > Since, (3146bee spi: s3c64xx: Added provision for dedicated cs pin) > > spi-s3c64xx.c driver expects > 1. chip select gpios from "cs-gpio"(singular) under the >"controller-data" node of the client/slave device of the SPI. Plea

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-15 Thread Mark Brown
On Tue, Jul 15, 2014 at 12:38:58PM +0200, Javier Martinez Canillas wrote: > Hello Mark, Don't top post. > On Mon, Jul 14, 2014 at 7:25 PM, Mark Brown wrote: > > On Mon, Jul 14, 2014 at 11:11:44AM +0530, Naveen Krishna Chatradhi wrote: > So, the .line field is used to specify a GPIO, not a chip

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-15 Thread Mark Brown
On Tue, Jul 15, 2014 at 09:33:21AM +0530, Naveen Krishna Ch wrote: > On 15 July 2014 00:45, Mark Brown wrote: > > The problem isn't what you're trying to do, the problem is verifying > > that it has been done correctly - making sure that everything has been > > accounted for in the change itself.

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-15 Thread Javier Martinez Canillas
Hello Mark, I agree that the commit message could have a better description and I understand your concerns. I'm not an SPI expert by any means but I did my best to review the patches and provide feedback to Naveen on the first iterations of the series. On Mon, Jul 14, 2014 at 7:25 PM, Mark Brown

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-14 Thread Naveen Krishna Ch
Hello Mark, On 15 July 2014 00:45, Mark Brown wrote: > On Tue, Jul 15, 2014 at 12:31:32AM +0530, Naveen Krishna Ch wrote: > >> in this case spi-s3c64xx.c will continue to ignore the generic SPI "cs-gpios" >> implementation. > >> I'm willing to implement any suggestion to fix this issue. > > The p

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-14 Thread Mark Brown
On Tue, Jul 15, 2014 at 12:31:32AM +0530, Naveen Krishna Ch wrote: > in this case spi-s3c64xx.c will continue to ignore the generic SPI "cs-gpios" > implementation. > I'm willing to implement any suggestion to fix this issue. The problem isn't what you're trying to do, the problem is verifying t

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-14 Thread Naveen Krishna Ch
Hello Mark, On 14 July 2014 22:55, Mark Brown wrote: > On Mon, Jul 14, 2014 at 11:11:44AM +0530, Naveen Krishna Chatradhi wrote: > >> @@ -812,6 +800,10 @@ static int s3c64xx_spi_setup(struct spi_device *spi) >> spi->controller_data = cs; >> } >> >> + /* For the non-DT plat

Re: [PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-14 Thread Mark Brown
On Mon, Jul 14, 2014 at 11:11:44AM +0530, Naveen Krishna Chatradhi wrote: > @@ -812,6 +800,10 @@ static int s3c64xx_spi_setup(struct spi_device *spi) > spi->controller_data = cs; > } > > + /* For the non-DT platforms derive chip selects from controller data */ > + if

[PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-13 Thread Naveen Krishna Chatradhi
Since, (3146bee spi: s3c64xx: Added provision for dedicated cs pin) spi-s3c64xx.c driver expects 1. chip select gpios from "cs-gpio"(singular) under the "controller-data" node of the client/slave device of the SPI. 2. "cs-gpio"(singular) entry to be present in the SPI device node. Eg of curre