Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Mark Brown
On Wed, Apr 20, 2016 at 06:41:11PM +0530, Bhuvanchandra DV wrote: > On 04/20/2016 05:47 PM, Mark Brown wrote: > >The DT should describe the hardware so the DT should describe whatever > >device is connected to the spidev, what you're trying to do is have > >spidev bind to these new compatible

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Mark Brown
On Wed, Apr 20, 2016 at 06:41:11PM +0530, Bhuvanchandra DV wrote: > On 04/20/2016 05:47 PM, Mark Brown wrote: > >The DT should describe the hardware so the DT should describe whatever > >device is connected to the spidev, what you're trying to do is have > >spidev bind to these new compatible

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Bhuvanchandra DV
On 04/20/2016 05:47 PM, Mark Brown wrote: On Wed, Apr 20, 2016 at 05:43:32PM +0530, Bhuvanchandra DV wrote: SPI drivers bind to the device as configured in DT, but in case of spidev(non DT approach) the device is not available in hand to bind the driver. So tried this approach of creating the

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Bhuvanchandra DV
On 04/20/2016 05:47 PM, Mark Brown wrote: On Wed, Apr 20, 2016 at 05:43:32PM +0530, Bhuvanchandra DV wrote: SPI drivers bind to the device as configured in DT, but in case of spidev(non DT approach) the device is not available in hand to bind the driver. So tried this approach of creating the

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Bhuvanchandra DV
On 04/18/2016 06:31 PM, Mark Brown wrote: On Mon, Apr 18, 2016 at 04:48:27PM +0530, Bhuvanchandra DV wrote: +++ b/Documentation/ABI/testing/sysfs-bus-spi-spidev @@ -0,0 +1,8 @@ +What: /sys/bus/spi/drivers/spidev/new_id +Date: March 2016 +Description: + This

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Bhuvanchandra DV
On 04/18/2016 06:31 PM, Mark Brown wrote: On Mon, Apr 18, 2016 at 04:48:27PM +0530, Bhuvanchandra DV wrote: +++ b/Documentation/ABI/testing/sysfs-bus-spi-spidev @@ -0,0 +1,8 @@ +What: /sys/bus/spi/drivers/spidev/new_id +Date: March 2016 +Description: + This

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Mark Brown
On Wed, Apr 20, 2016 at 05:43:32PM +0530, Bhuvanchandra DV wrote: > SPI drivers bind to the device as configured in DT, but in case of > spidev(non DT approach) the device is not available in hand to bind the > driver. So tried this approach of creating the device and then bind spidev. > I agree

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-20 Thread Mark Brown
On Wed, Apr 20, 2016 at 05:43:32PM +0530, Bhuvanchandra DV wrote: > SPI drivers bind to the device as configured in DT, but in case of > spidev(non DT approach) the device is not available in hand to bind the > driver. So tried this approach of creating the device and then bind spidev. > I agree

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-18 Thread Mark Brown
On Mon, Apr 18, 2016 at 04:48:27PM +0530, Bhuvanchandra DV wrote: > +++ b/Documentation/ABI/testing/sysfs-bus-spi-spidev > @@ -0,0 +1,8 @@ > +What:/sys/bus/spi/drivers/spidev/new_id > +Date:March 2016 > +Description: > + This allows to load spidev at

Re: [RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-18 Thread Mark Brown
On Mon, Apr 18, 2016 at 04:48:27PM +0530, Bhuvanchandra DV wrote: > +++ b/Documentation/ABI/testing/sysfs-bus-spi-spidev > @@ -0,0 +1,8 @@ > +What:/sys/bus/spi/drivers/spidev/new_id > +Date:March 2016 > +Description: > + This allows to load spidev at

[RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-18 Thread Bhuvanchandra DV
Use sysfs new_id file to enable spidev at runtime. new_id file accepts bus number and chip select in 'B.C' format. With reference to the last ML discussion here[1] regarding the solution for spidev with device trees. This patch adds support to load spidevB.C via sysfs new_id file as suggested by

[RFC 1/2] spi: spidev: Use 'new_id' sysfs file for enabling spidev

2016-04-18 Thread Bhuvanchandra DV
Use sysfs new_id file to enable spidev at runtime. new_id file accepts bus number and chip select in 'B.C' format. With reference to the last ML discussion here[1] regarding the solution for spidev with device trees. This patch adds support to load spidevB.C via sysfs new_id file as suggested by