From: Alessandro Rubini <rubini@gnudd.com>
To: lars@metafoo.de
Cc: christophe.leroy@c-s.fr, jic23@cam.ac.uk,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
patrick.vasseur@c-s.fr
Subject: Re: [PATCH] IIO ADC support for AD7923
Date: Thu, 17 Jan 2013 18:11:00 +0100 [thread overview]
Message-ID: <20130117171100.GA24398@mail.gnudd.com> (raw)
In-Reply-To: <50F199F7.7020600@metafoo.de>
>> I wonder if IIO config symbols should have IIO_ in their name, so
>> people looking at config files knows what they actually are.
>> Actually, all USB drivers have USB in their config name, which is
>> useful even if e.g. "PL2303" cannot be but USB.
>>
>> On the other hand, AD7923 and all the others can well be driven by
>> something else than IIO, even if currently this is the only mainstream
>> option.
>
> No, IIO is and should be the only option for these devices. We really don't
> want to drivers for the same device in different subsystems of the kernel.
We really don't want a non-USB driver for a USB device, but still the
name is in the config symbol and is useful. And this is an hardware
constraint.
And your argument may well have applied to comedi. But they wisely
made the right choice and allowed iio to take over and possibly drive
the same devices.
But sure your code is perfect and no other subsystem will ever be needed.
To explain, this is the problem I had: IIO was still in staging, and I
had to use the ADC in the at91sam9g20. The platform data there was
protected by "IS_ENABLED(CONFIG_AT91_ADC)", which is actually only
selectable if IIO is configured in.
What should I do if I wanted to drive directly the hardware with a
simple custom thing, because, for example, my target board is very
small? Currently I run a patched kernel, because otherwise I can't
load my custom module and use the already-available platform data.
No, it's not only a name change, it's that the description of the
hardware should not depend on which subsystems are selected.
But yes, you are right. I'm working on another I/O subsystem. We are
gong to release zio-1.0 in a few days, because the thing is mature
and used in production.
I hope to meet you in person at fosdem and be able to talk over a beer
or two.
regards
/alessandro
next prev parent reply other threads:[~2013-01-17 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-08 8:42 [PATCH] IIO ADC support for AD7923 Christophe Leroy
2013-01-08 9:14 ` Alessandro Rubini
2013-01-12 10:39 ` Jonathan Cameron
2013-01-12 17:14 ` Lars-Peter Clausen
2013-01-17 16:32 ` Alessandro Rubini
2013-01-17 17:11 ` Alessandro Rubini [this message]
2013-01-17 17:36 ` Lars-Peter Clausen
2013-01-18 23:02 ` Getz, Robin
2013-01-19 12:51 ` Jonathan Cameron
2013-01-17 18:26 ` Alessandro Rubini
2013-01-08 10:27 ` Lars-Peter Clausen
2013-01-19 15:05 ` christophe leroy
2013-01-19 19:59 ` Lars-Peter Clausen
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=20130117171100.GA24398@mail.gnudd.com \
--to=rubini@gnudd.com \
--cc=christophe.leroy@c-s.fr \
--cc=jic23@cam.ac.uk \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrick.vasseur@c-s.fr \
/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;
as well as URLs for NNTP newsgroup(s).