From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932208AbdBKKXb (ORCPT ); Sat, 11 Feb 2017 05:23:31 -0500 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:45151 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932097AbdBKKXa (ORCPT ); Sat, 11 Feb 2017 05:23:30 -0500 Subject: Re: [PATCH v1 0/2] iio: Add parent_trigger attribute to triggers To: Benjamin Gaignard , Lars-Peter Clausen References: <1486390912-24362-1-git-send-email-benjamin.gaignard@st.com> Cc: Linux Kernel Mailing List , linux-iio@vger.kernel.org, Hartmut Knaack , Peter Meerwald-Stadler , Fabrice Gasnier , Linaro Kernel Mailman List , Benjamin Gaignard From: Jonathan Cameron Message-ID: Date: Sat, 11 Feb 2017 10:23:27 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/17 14:43, Benjamin Gaignard wrote: > 2017-02-06 15:26 GMT+01:00 Lars-Peter Clausen : >> 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. > I think Lars was looking for the more general explanation. How does one trigger drive another one? What does that mean?