From: Arnd Bergmann <arnd@arndb.de>
To: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Kay Sievers <kay.sievers@vrfy.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
Greg KH <greg@kroah.com>, Jean Delvare <khali@linux-fr.org>,
Guenter Roeck <guenter.roeck@ericsson.com>
Subject: Re: IIO comments
Date: Thu, 17 Mar 2011 14:47:17 +0100 [thread overview]
Message-ID: <201103171447.17960.arnd@arndb.de> (raw)
In-Reply-To: <4D80CE2E.9000407@cam.ac.uk>
I just went back to the older email and noticed that I missed some of your
important replies.
On Wednesday 16 March 2011, Jonathan Cameron wrote:
> > I'm slightly confused, mainly because I have no idea how the
> > buffer and event interfaces are actually being used. I would
> > have expected an interface as simple as:
> >
> > * One iio device per sensor that can provide data, possibly
> > many per hardware device
>
> One per device.
I'm not sure what that means. One iio device per hardware device?
What about hardware devices that have multiple unrelated streams
of buffered input data?
> > * One chardev for each iio device
>
> currently 1-3. (event line, buffer access, buffer event)
It would be really nice to unify this, as I said. What
are the reasons why you think it cannot or should not be
done?
> > * Use epoll to wait for data and/or out-of-band messages
> > * Use chrdev read to get events from the buffer
>
> and data?
I mean get the data associated with the event. The event
itself as you said does not have any data, so we would not
need to read it, just to use poll()/epoll() in order to
wait for it.
> > * Use sysfs to read from sensors that are not event based
> >
> > What you have is obviously more complex than this, and you
> > probably have good reasons that I still need to understand.
Arnd
next prev parent reply other threads:[~2011-03-17 13:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-15 21:15 IIO comments Arnd Bergmann
2011-03-16 11:57 ` Jonathan Cameron
2011-03-16 13:33 ` Arnd Bergmann
2011-03-16 14:50 ` Jonathan Cameron
2011-03-16 15:09 ` Guenter Roeck
2011-03-16 15:15 ` Arnd Bergmann
2011-03-16 15:33 ` Jonathan Cameron
2011-03-17 13:24 ` Arnd Bergmann
2011-03-17 16:47 ` Jonathan Cameron
2011-03-17 17:51 ` Arnd Bergmann
2011-03-17 18:33 ` Jonathan Cameron
2011-03-18 12:47 ` Arnd Bergmann
2011-03-18 16:06 ` Jonathan Cameron
2011-03-18 16:18 ` Arnd Bergmann
2011-03-18 16:29 ` Jonathan Cameron
2011-03-18 16:57 ` Arnd Bergmann
2011-03-18 17:51 ` Jonathan Cameron
2011-03-17 13:47 ` Arnd Bergmann [this message]
2011-03-17 14:42 ` Jonathan Cameron
2011-03-17 15:03 ` Arnd Bergmann
2011-03-17 16:46 ` Jonathan Cameron
2011-03-17 16:47 ` Jonathan Cameron
2011-03-17 17:54 ` Arnd Bergmann
2011-03-16 16:54 ` Jonathan Cameron
2011-03-16 18:52 ` Arnd Bergmann
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=201103171447.17960.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=greg@kroah.com \
--cc=guenter.roeck@ericsson.com \
--cc=jic23@cam.ac.uk \
--cc=kay.sievers@vrfy.org \
--cc=khali@linux-fr.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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