Re: [PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-11-09 Thread Vinod Koul
On Thu, Nov 09, 2017 at 09:14:35PM +, Srinivas Kandagatla wrote: > > > On 19/10/17 04:03, Vinod Koul wrote: > >It helps to read the properties for understanding and debug > >SoundWire systems, so add sysfs files for SoundWire DisCo > >properties. > > > >TODO: Add ABI files for sysfs > > > >Si

Re: [PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-11-09 Thread Srinivas Kandagatla
On 19/10/17 04:03, Vinod Koul wrote: It helps to read the properties for understanding and debug SoundWire systems, so add sysfs files for SoundWire DisCo properties. TODO: Add ABI files for sysfs Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- diff --git a/drivers/soundwire/bus

Re: [PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:42:53AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:26AM +0530, Vinod Koul wrote: > > > +static ssize_t clock_frequencies_show(struct sdw_bus *bus, > > + struct sdw_prop_attribute *attr, char *buf) > > +{ > > + ssize_t size = 0; > > + i

Re: [PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:26AM +0530, Vinod Koul wrote: > +static ssize_t clock_frequencies_show(struct sdw_bus *bus, > + struct sdw_prop_attribute *attr, char *buf) > +{ > + ssize_t size = 0; > + int i; > + > + for (i = 0; i < bus->prop.num_freq; i++) > +

[PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-10-18 Thread Vinod Koul
It helps to read the properties for understanding and debug SoundWire systems, so add sysfs files for SoundWire DisCo properties. TODO: Add ABI files for sysfs Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/Makefile| 2 +- drivers/soundwire/bus.c | 5 +