From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
To: Lars-Peter Clausen <lars@metafoo.de>,
Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>,
Peter Meerwald <pmeerw@pmeerw.net>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, cory.tusar@pid1solutions.com
Subject: Re: [PATCH v3 5/7] iio: Support triggered events
Date: Fri, 07 Aug 2015 19:10:32 +0300 [thread overview]
Message-ID: <55C4D878.1010605@cogentembedded.com> (raw)
In-Reply-To: <55C4B66C.1020609@metafoo.de>
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
>
> Thanks,
> - Lars
>
next prev parent reply other threads:[~2015-08-07 16:10 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
[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: " 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
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 [this message]
[not found] ` <55C4D878.1010605-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-08-16 9:05 ` Jonathan Cameron
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
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=55C4D878.1010605@cogentembedded.com \
--to=vladimir.barinov@cogentembedded.com \
--cc=cory.tusar@pid1solutions.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=pmeerw@pmeerw.net \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).