From: Jonathan Cameron <jic23@cam.ac.uk>
To: malas <malas@tcoe.iitm.ac.in>
Cc: Michael Hennerich <michael.hennerich@analog.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: ad7793 adc rcv userspace test - details attached
Date: Wed, 24 Aug 2011 16:51:11 +0100 [thread overview]
Message-ID: <4E551DEF.4030805@cam.ac.uk> (raw)
In-Reply-To: <20110824084734.M61257@tcoe.iitm.ac.in>
On 08/24/11 09:53, malas wrote:
> 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.
Major as you've noted is 255
>
>
>> What does the following contain?
>>
>> /sys/bus/iio/devices/device0:/buffer0/dev
>
> It has ad7793-dev
really? Should be a major:minor number pair.
> --
> Open WebMail Project (http://openwebmail.org)
>
>
>
>
next prev parent reply other threads:[~2011-08-24 15:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 8:26 ad7793 adc rcv userspace test - details attached malas
2011-08-24 8:44 ` Jonathan Cameron
2011-08-24 8:53 ` malas
2011-08-24 15:51 ` Jonathan Cameron [this message]
2011-08-25 6:58 ` malas
2011-08-29 5:39 ` ad7793 adc rcv userspace test - passed succesfully malas
2011-08-30 10:02 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E551DEF.4030805@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=malas@tcoe.iitm.ac.in \
--cc=michael.hennerich@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox