From: Greg KH <greg@kroah.com>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: "jic23@cam.ac.uk" <jic23@cam.ac.uk>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Drivers <Drivers@analog.com>,
"device-drivers-devel@blackfin.uclinux.org"
<device-drivers-devel@blackfin.uclinux.org>
Subject: Re: [PATCH] IIO: TRIGGER: New sysfs based trigger
Date: Thu, 3 Feb 2011 09:13:34 -0800 [thread overview]
Message-ID: <20110203171334.GA11204@kroah.com> (raw)
In-Reply-To: <544AC56F16B56944AEC3BD4E3D591771324C165AEC@LIMKCMBX1.ad.analog.com>
On Thu, Feb 03, 2011 at 09:58:33AM +0000, Hennerich, Michael wrote:
> Greg KH wrote on 2011-02-02:
> > On Wed, Feb 02, 2011 at 08:36:27PM +0000, Hennerich, Michael wrote:
> >> Greg KH wrote on 2011-02-02:
> >>> On Wed, Feb 02, 2011 at 08:21:08PM +0100,
> >>> michael.hennerich@analog.com
> >>> wrote:
> >>>> From: Michael Hennerich <michael.hennerich@analog.com>
> >>>>
> >>>> This patch adds a new trigger that can be invoked by writing the
> >>>> sysfs
> >>>> file: trigger_now. This approach can be valuable during automated
> >>>> testing or in situations, where other trigger methods are not
> >>>> applicable. For example no RTC or spare GPIOs. Last but not least
> >>>> we can allow user space applications to produce triggers.
> >>>>
> >>>> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
> >>>> Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
> >>>
> >>> If you add a new sysfs file, you need to document it. I'll not take
> >>> this patch as-is because of that.
> >>>
> >>>> ---
> >>>> drivers/staging/iio/trigger/Kconfig | 6 ++
> >>>> drivers/staging/iio/trigger/Makefile | 1 +
> >>>> drivers/staging/iio/trigger/iio-trig-sysfs.c | 108
> >>>> ++++++++++++++++++++++++++ 3 files changed, 115 insertions(+), 0
> >>>> deletions(-) create mode
> >>>> 100644 drivers/staging/iio/trigger/iio-trig-sysfs.c
> >>>>
> >>>> diff --git a/drivers/staging/iio/trigger/Kconfig
> >>>> b/drivers/staging/iio/trigger/Kconfig
> >>>> index d842a58..c185e47 100644
> >>>> --- a/drivers/staging/iio/trigger/Kconfig
> >>>> +++ b/drivers/staging/iio/trigger/Kconfig
> >>>> @@ -18,4 +18,10 @@ config IIO_GPIO_TRIGGER
> >>>> help
> >>>> Provides support for using GPIO pins as IIO triggers.
> >>>> +config IIO_SYSFS_TRIGGER
> >>>> + tristate "SYSFS trigger"
> >>>> + depends on SYSFS
> >>>> + help
> >>>> + Provides support for using SYSFS entry as IIO triggers.
> >>>
> >>> Why would you ever want to not have this enabled? Why is it a
> >>> config option? And shouldn't it depend on the IIO subsystem?
> >>
> >> You won't see this if you don't have IIO + triggers enabled.
> >
> > Ok, the dependancy on IIO comes from other parts of the Kconfig file,
> > my mistake.
> >
> >> Are you asking me to add more help text here - or you didn't read the
> >> commit log? Alternatively are you asking why IIO common trigger core
> >> doesn't provide this flexibility?
> >>
> >> Sorry - please explain.
> >
> > My question is, why is this a config option at all? Why would it not
> > always be enabled? What benefit is it if it is not enabled?
>
> It's a config option, since the user must provide a platform resource for
> it.
What platform resource?
> If you're not planning to use it, why compile and include it at all?
If you are a distro, how are you supposed to know if this is something
you want or not?
If this is going to be the proper API for interacting with iio devices,
then it needs to always be present in the core, otherwise your userspace
tools are going to get messy, right?
> In embedded systems, people try to minimize kernel or rootfs size.
Sure, and how much size does this code really take?
> And last but not least kernel startup time.
How much extra time does this module take at startup time that you have
measured?
I've spent weeks working on boot speedup times for products, and a tiny
module like this, built into the kernel, would have no measurable affect
on boot time that I can see. What am I missing?
thanks,
greg k-h
next prev parent reply other threads:[~2011-02-03 17:15 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 19:21 [PATCH] IIO: TRIGGER: New sysfs based trigger michael.hennerich
2011-02-02 19:42 ` Greg KH
2011-02-02 19:55 ` Hennerich, Michael
2011-02-02 20:27 ` Greg KH
2011-02-02 20:36 ` Hennerich, Michael
2011-02-02 20:47 ` Mark Brown
2011-02-02 20:58 ` Greg KH
2011-02-03 9:58 ` Hennerich, Michael
2011-02-03 17:13 ` Greg KH [this message]
2011-02-04 8:38 ` Hennerich, Michael
2011-02-04 10:51 ` Jonathan Cameron
2011-02-04 14:55 ` Greg KH
2011-02-04 15:27 ` Jonathan Cameron
2011-02-04 15:34 ` Hennerich, Michael
2011-02-04 15:44 ` Jonathan Cameron
2011-02-02 19:43 ` Greg KH
2011-02-02 19:50 ` Mark Brown
2011-02-02 20:26 ` Greg KH
2011-02-02 20:31 ` Mark Brown
2011-02-02 20:48 ` Greg KH
2011-02-02 20:13 ` Hennerich, Michael
2011-02-02 20:29 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2011-02-07 10:05 michael.hennerich
2011-02-03 10:10 michael.hennerich
2011-02-02 13:30 michael.hennerich
2011-02-02 18:22 ` Jonathan Cameron
2011-02-02 19:21 ` Hennerich, Michael
2011-02-03 10:13 ` 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=20110203171334.GA11204@kroah.com \
--to=greg@kroah.com \
--cc=Drivers@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@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 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.