On Wed, 24 Aug 2011 09:44:00 +0100, Jonathan Cameron wrote > On 08/24/11 09:26, malas wrote: > > > > Dear Michael Hennerich, > > > > I have attached the details of my testing with the ad7793 driver both as when installed > > as module and otherwise. > > > > I have not been to resolve the issue even after having created a device node under /dev > > as device0:buffer0. > > > > Requesting your further assistance for the same. > > > > Thanks > > Mala > > > > > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > > > > > Testing results of ADC ad7793 driver with generic_buffer.c > > > > > > Results of installing ad7793 adc driver as module: > > > > root:/> cd lib/modules/3.1.0-rc1-dirty/kernel/drivers/staging/iio/adc/ > > root:/lib/modules/3.1.0-rc1-dirty/kernel/drivers/staging/iio/adc> ls ad7793.ko > > root:/lib/modules/3.1.0-rc1-dirty/kernel/drivers/staging/iio/adc> insmod ad7793. ko > > ad7793: module is from the staging directory, the quality is unknown, you have been warned. > > root:/lib/modules/3.1.0-rc1-dirty/kernel/drivers/staging/iio/adc> lsmod > > Module Size Used by > > ad7793 7998 0 > > root:/lib/modules/3.1.0-rc1-dirty/kernel/drivers/staging/iio/adc> cd > > root:/> ls -l /dev/device0\:buffer0 > > crw-r--r-- 1 root root 0, 0 Jan 1 00:00 /dev/device0:buffer0 > > root:/> ls /sys/bus/iio/devices/ > > iio_sysfs_trigger > > root:/> > > > > I observed driver probe() doesn't get called when inserted as module. Also the device0\buffer0 nodes dont get created on installation. > > If probe isn't getting called then something has gone wrong in device matching. > What is the board file you are using? (guessing blackfin hasn't gone all > device tree yet?) board file and driver has name and modalias as ad7793 (small case) > > > Results of installing ad7793 adc driver built into kernel: > > > > I added following line in .rc under dist/vendor/AnalogDevices/common/. > > > > mknod /dev/device0:buffer0 c 0 0 > > > > Please confirm this property of node is correct? > > No it isn't. > http://www.kernel.org/pub/linux/docs/device-list/devices-2.6+.txt > tells us that 0 0 is reserved for null devices. iio major number listed under/proc/devices for iio was 254 What major and minor number should I initialize for the /dev/devicw0buffer0 device node. > What does the following contain? > > /sys/bus/iio/devices/device0:/buffer0/dev It has ad7793-dev -- Open WebMail Project (http://openwebmail.org) -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html