From: Jonathan Cameron <jic23@cam.ac.uk>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Arnd Bergmann <arnd@arndb.de>, Jean Delvare <khali@linux-fr.org>,
mems applications <mems.applications@st.com>,
rdunlap@xenotime.net, carmine.iascone@st.com,
matteo.dameno@st.com, rubini@ipvvis.unipv.it,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Guenter Roeck <guenter.roeck@ericsson.com>,
Greg KH <greg@kroah.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH] Add STMicroelectronics LPS001WP pressure sensor device driver into misc
Date: Tue, 15 Mar 2011 14:38:41 +0000 [thread overview]
Message-ID: <4D7F79F1.1000306@cam.ac.uk> (raw)
In-Reply-To: <20110315125149.GC17277@sirena.org.uk>
On 03/15/11 12:51, Mark Brown wrote:
> On Tue, Mar 15, 2011 at 11:11:00AM +0000, Jonathan Cameron wrote:
>> On 03/15/11 09:38, Arnd Bergmann wrote:
>
> [Reflowed Jonathan's text into 80 columns for legibility.]
>
>>> Do you think it would help to split the iio codebase into a smaller part
>>> for the relatively clean drivers that can be put into shape for
>>> drivers/iio, and the bulk of the code that stays in staging for a bit
>>> longer, until it gets converted to the new one in small chunks?
>
>> 1) Spit functionality out in staging. This would give a core set that
>> is basically the sysfs only stuff. To do that we'd have to define a
>> struct iio_dev_basic and make it an element of the iio_dev. Prior to
>> that we'd probably need to make pretty much all accesses into iio_dev
>> via macros / inline functions which would not be a trivial
>> undertaking.
>
>> Then we could switch those drivers doing the minimum to the _basic
>> form. At that point we could perhaps attempt to move a couple of
>> drivers and the abi docs out of staging.
>
>> The disadvantages of this that come to mind are: * Makes the path to
>> driver addition that I'd prefer trickier. You write a basic sysfs
>> only driver first, then add on stuff like events and buffering as
>> separate patches. We could go the other way around like v4l2-subdev
>> and have a base structure with the option of pointers to structures
>> offering different combinations of features. * Not many of the
>> drivers I'd consider to be ready to go at the moment are actually in
>> this _basic class.
>
> For what it's worth I have a few drivers I'd like to do which fall into
> this category. I've been put off working on them by the fact that I'm
> not seeing a route out of staging for the subsystem.
>
>> 2) Basically make a copy. This would look like the original patch set did when we went
>
> A third option is just to lift everything out of staging roughly as it
> is now with anything that definitely needs redoing dropped, addressing
> any review comments for mainline but not doing much else, and then
> resume working on adding additional stuff. It sounds like the userspace
> interfaces that are there at present are mostly OK and most of the
> issues are in-kernel?
Mostly, though I suspect our events interface will cause some 'discussion'
and that sits one step above the absolute minimum driver.
Right now I want to push out the rewrite of the triggers, then I'll start
putting together a patch set to try and move some stuff over and see how
well things break up.
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <jic23@cam.ac.uk>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Arnd Bergmann <arnd@arndb.de>, Jean Delvare <khali@linux-fr.org>,
mems applications <mems.applications@st.com>,
rdunlap@xenotime.net, carmine.iascone@st.com,
matteo.dameno@st.com, rubini@cvml.unipv.it,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Guenter Roeck <guenter.roeck@ericsson.com>,
Greg KH <greg@kroah.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH] Add STMicroelectronics LPS001WP pressure sensor device driver into misc
Date: Tue, 15 Mar 2011 14:38:41 +0000 [thread overview]
Message-ID: <4D7F79F1.1000306@cam.ac.uk> (raw)
In-Reply-To: <20110315125149.GC17277@sirena.org.uk>
On 03/15/11 12:51, Mark Brown wrote:
> On Tue, Mar 15, 2011 at 11:11:00AM +0000, Jonathan Cameron wrote:
>> On 03/15/11 09:38, Arnd Bergmann wrote:
>
> [Reflowed Jonathan's text into 80 columns for legibility.]
>
>>> Do you think it would help to split the iio codebase into a smaller part
>>> for the relatively clean drivers that can be put into shape for
>>> drivers/iio, and the bulk of the code that stays in staging for a bit
>>> longer, until it gets converted to the new one in small chunks?
>
>> 1) Spit functionality out in staging. This would give a core set that
>> is basically the sysfs only stuff. To do that we'd have to define a
>> struct iio_dev_basic and make it an element of the iio_dev. Prior to
>> that we'd probably need to make pretty much all accesses into iio_dev
>> via macros / inline functions which would not be a trivial
>> undertaking.
>
>> Then we could switch those drivers doing the minimum to the _basic
>> form. At that point we could perhaps attempt to move a couple of
>> drivers and the abi docs out of staging.
>
>> The disadvantages of this that come to mind are: * Makes the path to
>> driver addition that I'd prefer trickier. You write a basic sysfs
>> only driver first, then add on stuff like events and buffering as
>> separate patches. We could go the other way around like v4l2-subdev
>> and have a base structure with the option of pointers to structures
>> offering different combinations of features. * Not many of the
>> drivers I'd consider to be ready to go at the moment are actually in
>> this _basic class.
>
> For what it's worth I have a few drivers I'd like to do which fall into
> this category. I've been put off working on them by the fact that I'm
> not seeing a route out of staging for the subsystem.
>
>> 2) Basically make a copy. This would look like the original patch set did when we went
>
> A third option is just to lift everything out of staging roughly as it
> is now with anything that definitely needs redoing dropped, addressing
> any review comments for mainline but not doing much else, and then
> resume working on adding additional stuff. It sounds like the userspace
> interfaces that are there at present are mostly OK and most of the
> issues are in-kernel?
Mostly, though I suspect our events interface will cause some 'discussion'
and that sits one step above the absolute minimum driver.
Right now I want to push out the rewrite of the triggers, then I'll start
putting together a patch set to try and move some stuff over and see how
well things break up.
next prev parent reply other threads:[~2011-03-15 14:37 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 18:55 [PATCH] Add STMicroelectronics LPS001WP pressure sensor device driver into misc mems applications
2011-03-14 19:19 ` Jonathan Cameron
2011-03-14 19:46 ` Arnd Bergmann
2011-03-14 20:14 ` Jonathan Cameron
2011-03-14 20:18 ` Jean Delvare
2011-03-14 20:27 ` Guenter Roeck
2011-03-14 20:36 ` Arnd Bergmann
2011-03-14 21:42 ` Jean Delvare
2011-03-14 22:48 ` Guenter Roeck
2011-03-15 9:24 ` Arnd Bergmann
2011-03-15 11:30 ` Jonathan Cameron
2011-03-15 13:58 ` Arnd Bergmann
2011-03-14 23:23 ` Jonathan Cameron
2011-03-15 9:38 ` Arnd Bergmann
2011-03-15 11:11 ` Jonathan Cameron
2011-03-15 11:11 ` Jonathan Cameron
2011-03-15 12:51 ` Mark Brown
2011-03-15 12:51 ` Mark Brown
2011-03-15 13:31 ` Arnd Bergmann
2011-03-15 13:31 ` Arnd Bergmann
2011-03-15 14:35 ` Jonathan Cameron
2011-03-15 14:35 ` Jonathan Cameron
2011-03-15 14:38 ` Jonathan Cameron [this message]
2011-03-15 14:38 ` Jonathan Cameron
2011-03-15 13:29 ` Arnd Bergmann
2011-03-15 13:29 ` Arnd Bergmann
2011-03-15 14:47 ` Jonathan Cameron
2011-03-15 14:47 ` Jonathan Cameron
2011-03-15 16:50 ` Arnd Bergmann
2011-03-15 16:50 ` 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=4D7F79F1.1000306@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=arnd@arndb.de \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=carmine.iascone@st.com \
--cc=greg@kroah.com \
--cc=guenter.roeck@ericsson.com \
--cc=khali@linux-fr.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matteo.dameno@st.com \
--cc=mems.applications@st.com \
--cc=rdunlap@xenotime.net \
--cc=rubini@ipvvis.unipv.it \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.