From: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Vladimir Barinov
<vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>,
Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
Cc: Hartmut Knaack <knaack.h-Mmb7MZpHnFY@public.gmane.org>,
Peter Meerwald <pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Ian Campbell
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
cory.tusar-J6Z/VSE8EyIAspv4Qr0y0gC/G2K4zDHf@public.gmane.org
Subject: Re: [PATCH v3 5/7] iio: Support triggered events
Date: Sun, 16 Aug 2015 10:05:54 +0100 [thread overview]
Message-ID: <55D05272.7010107@kernel.org> (raw)
In-Reply-To: <55C4D878.1010605-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
Vladimir - before I forget, could you try to wrap emails to around
80 characters per line. Otherwise we end up with really tricky
to read thread when some are doing so and others aren't!
On 07/08/15 17:10, Vladimir Barinov wrote:
> Hi Lars,
>
> On 07.08.2015 16:45, Lars-Peter Clausen wrote:
>> Hi,
>>
>> On 07/29/2015 02:57 PM, Vladimir Barinov wrote:
>>> Support triggered events.
>>>
>>> This is useful for chips that don't have their own interrupt sources.
>>> It allows to use generic/standalone iio triggers for those drivers.
>>>
>> Thanks for the patch. Can you describe in more detail how
>> INDIO_EVENT_TRIGGERED differs from the INDIO_BUFFER_TRIGGERED. By just
>> looking at the source code I don't understand quite why it is necessary.
> This is needed for the case when iio buffer is not used and used only
> iio event.
>
> The difference to INDIO_BUFFER_TRIGGERED is that for triggered buffer
> the trigger poll function is attached (using
> iio_trigger_attach_poll_func) only in industrialio-buffer.c using
> number of steps/conditions starting by issuing 1 to buffer/enable
> sysfs path.
>
> For chips that do not use iio buffer but use only iio events the
> iio_trigger_attach_poll_func never called.
>
> In case of using INDIO_BUFFER_TRIGGERED the poll func is
> attached/detached via industrialio-buffer.c In case of using
> INDIO_EVENT_TRIGGERED the poll func is attached/detached via
> industrialio-trigger.c during set/change the current trigger.
>
> Regards, Vladimir
You've convinced Lars and I agree with his argument that this
is a sensible addition to IIO.
>
>> Thanks,
>> - Lars
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-08-16 9:05 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 12:54 [PATCH v3 0/7] iio: adc: hi8435: Add Holt HI-8435 threshold detector Vladimir Barinov
2015-07-29 12:57 ` [PATCH v3 2/7] dt: Add vendor prefix 'holt' Vladimir Barinov
2015-07-29 12:57 ` [PATCH v3 3/7] dt: Document Holt HI-8435 bindings Vladimir Barinov
2015-07-29 12:57 ` [PATCH v3 4/7] iio: trigger: Add periodic polling to SYSFS trigger Vladimir Barinov
[not found] ` <1438174642-19258-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-07 13:42 ` Lars-Peter Clausen
2015-08-08 17:26 ` Jonathan Cameron
2015-07-29 12:57 ` [PATCH v3 5/7] iio: Support triggered events Vladimir Barinov
[not found] ` <1438174648-19296-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-07 13:45 ` Lars-Peter Clausen
2015-08-07 16:10 ` Vladimir Barinov
[not found] ` <55C4D878.1010605-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-16 9:05 ` Jonathan Cameron [this message]
2015-08-16 9:20 ` Jonathan Cameron
[not found] ` <55D055C9.4020409-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-08-16 20:15 ` Vladimir Barinov
[not found] ` <55D0EF57.5050304-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-22 13:52 ` Jonathan Cameron
2015-07-29 12:57 ` [PATCH v3 6/7] iio: Add ABI documentation for debounce_time Vladimir Barinov
2015-07-29 12:57 ` [PATCH v3 7/7] iio: Fix typos in ABI documentation Vladimir Barinov
[not found] ` <1438174661-19371-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-08 18:39 ` Jonathan Cameron
[not found] ` <1438174469-19054-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-07-29 12:56 ` [PATCH v3 1/7] iio: adc: hi8435: Holt HI-8435 threshold detector Vladimir Barinov
[not found] ` <1438174617-19143-1-git-send-email-vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-08 17:56 ` Jonathan Cameron
[not found] ` <55C642C1.4070105-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-08-11 12:21 ` Lars-Peter Clausen
2015-08-11 17:01 ` Jonathan Cameron
2015-08-11 14:37 ` Vladimir Barinov
[not found] ` <55CA08BC.4070202-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-16 9:00 ` Jonathan Cameron
[not found] ` <55D05144.70509-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2015-08-16 18:54 ` Vladimir Barinov
[not found] ` <55D0DC7A.7090600-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-22 13:48 ` Jonathan Cameron
2015-08-08 17:28 ` [PATCH v3 0/7] iio: adc: hi8435: Add " 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=55D05272.7010107@kernel.org \
--to=jic23-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=cory.tusar-J6Z/VSE8EyIAspv4Qr0y0gC/G2K4zDHf@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=knaack.h-Mmb7MZpHnFY@public.gmane.org \
--cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
--cc=pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.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;
as well as URLs for NNTP newsgroup(s).