Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1574859

Re: [PATCH v1 0/2] iio: Add parent_trigger attribute to triggers

From Benjamin Gaignard <benjamin.gaignard@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v1 0/2] iio: Add parent_trigger attribute to triggers
Date 2017-02-06 15:50 +0100
Message-ID <t7SMa-6cu-21@gated-at.bofh.it> (permalink)
References <t7SsN-64V-3@gated-at.bofh.it> <t7SsN-64V-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2017-02-06 15:26 GMT+01:00 Lars-Peter Clausen <lars@metafoo.de>:
> On 02/06/2017 03:21 PM, Benjamin Gaignard wrote:
>> Thoses patches add parent_trigger attribute to IIO triggers.
>> The goal is to allow triggers to use triggers like is this done for iio
>> devices.
>> With this patch it will be possible to chain triggers, for example
>> stm32 triggers could be used as clock of an other triggers:
>> echo "tim1_trgo" > trigger0/parent_trigger.
>
> Can you explain how this is different to assigning the parent_trigger
> directly to the device?
>

It is the same but done on trigger structure without need to have an iio device.

While writing stm32 trigger driver Jonathan explain me that I can't use an iio
device without channel to chain my hardware blocks.
Since my hardware allows to chain triggers, Jonathan suggest to create this
parent_trigger attribute to ab able to link the triggers.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v1 0/2] iio: Add parent_trigger attribute to triggers Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-06 15:30 +0100
  Re: [PATCH v1 0/2] iio: Add parent_trigger attribute to triggers Lars-Peter Clausen <lars@metafoo.de> - 2017-02-06 15:30 +0100
    Re: [PATCH v1 0/2] iio: Add parent_trigger attribute to triggers Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-06 15:50 +0100
      Re: [PATCH v1 0/2] iio: Add parent_trigger attribute to triggers Jonathan Cameron <jic23@kernel.org> - 2017-02-11 11:30 +0100
  [PATCH v1 2/2] iio: stm32 trigger: Implement validate_trigger function Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-06 15:30 +0100
    Re: [PATCH v1 2/2] iio: stm32 trigger: Implement validate_trigger  function Jonathan Cameron <jic23@kernel.org> - 2017-02-11 12:20 +0100
  [PATCH v1 1/2] iio: Allow triggers to be used as parent of others triggers Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-06 15:30 +0100
    Re: [PATCH v1 1/2] iio: Allow triggers to be used as parent of others  triggers Jonathan Cameron <jic23@kernel.org> - 2017-02-11 12:00 +0100

csiph-web