devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nuno Sá" <noname.nuno@gmail.com>
To: Conor Dooley <conor@kernel.org>, nuno.sa@analog.com
Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Frank Rowand <frowand.list@gmail.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Olivier Moysan <olivier.moysan@foss.st.com>
Subject: Re: [PATCH v2 0/8] iio: add new backend framework
Date: Sat, 09 Dec 2023 15:32:33 +0100	[thread overview]
Message-ID: <a59232317228f2d459a9c3fba63596daec988520.camel@gmail.com> (raw)
In-Reply-To: <20231208-corridor-outfit-ae0314b29186@spud>

On Fri, 2023-12-08 at 15:30 +0000, Conor Dooley wrote:
> On Fri, Dec 08, 2023 at 04:14:07PM +0100, Nuno Sa via B4 Relay wrote:
> > This series depends on [1] and it only build on top of it. The point is
> > to already speed up the reviewing of the framework. That obviously means
> > that all those pacthes were dropped in v2.
> > 
> > v1:
> >  
> > https://lore.kernel.org/linux-iio/20231204144925.4fe9922f@jic23-huawei/T/#m222f517
> > 5273b81dbfe40b7f0daffcdc67d6cb8ff
> > 
> > Changes in v2:
> >  - Patch 1-2 and 5
> >    * new patches.
> >  - Patch 6:
> >    * Fixed some docs failures;
> >    * Fixed a legacy 'conv' name in one of the function parameters;
> >    * Added .request_buffer() and .free_buffer() ops;
> >    * Refactored the helper macros;
> >    * Added Olivier as Reviewer.
> >  - Patch 7:
> >    * Use new devm_iio_backend_request_buffer().
> >  - Patch 8:
> >    * Implement new .request_buffer() and .free_buffer() ops;
> > 
> > Also would like to mention that in v2 I'm experimenting in having the
> > DMA on the backend device (as discussed with David in v1). Does not look
> > to bad but as I said before, I'm not seeing a big issue if we end up
> > having the buffer allocation in the frontend.
> > 
> > For the bindings folks:
> > 
> > I'm introducing a new io-backends property in the ad9467 bindings but I'm
> > not sure this is the way to do it. Ideally that new property become a
> > generic schema and I'm guessing I should send a PULL to?
> > 
> > https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/iio/iio-consumer.yaml
> 
> That seems like the right thing to do to me, depending on how widespread
> the use of these backends might be. What is seemingly missing though,
> from this cover and from the bindings patch in the series in particular,
> is an explanation of what the "iio-backends" hardware actually is.
> 

Yeah, sorry about the bindings patch but I was already with the feeling that a PR in
devicetree-org to be the right place. I'll be adding more drivers needing that
property and STM also wants make use this.

I'll improve on the explanation and send a PR for a generic schema.

> There is some text below, but it does not seem complete to me. Is the
> idea that this "backend" is shared between multiple frontend consumers?
> The one example is described as being "highly focused on ADI usecases"
> 

For now it cannot really be shared. The code is not prepared for it (we would need to
keep enable/disable counters etc...). For now, I'm just adding the simpler cases of
1:1 and 1:n (1 frontend for multiple backends). Internally we do have 1:n designs
that I definitely want (in time) to bring upstream.

That said, having a usecase for it in the future, it is something that can be added,
yes...

Thanks for the feedback!
- Nuno Sá
> 


  reply	other threads:[~2023-12-09 14:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-08 15:14 [PATCH v2 0/8] iio: add new backend framework Nuno Sa via B4 Relay
2023-12-08 15:14 ` [PATCH v2 1/8] dt-bindings: adc: ad9467: document io-backend property Nuno Sa via B4 Relay
2023-12-08 17:40   ` Krzysztof Kozlowski
2023-12-09 14:35     ` Nuno Sá
2023-12-08 15:14 ` [PATCH v2 2/8] dt-bindings: adc: axi-adc: deprecate 'adi,adc-dev' Nuno Sa via B4 Relay
2023-12-08 17:39   ` Krzysztof Kozlowski
2023-12-09 14:40     ` Nuno Sá
2023-12-08 15:14 ` [PATCH v2 3/8] driver: core: allow modifying device_links flags Nuno Sa via B4 Relay
2023-12-10 14:22   ` Jonathan Cameron
2023-12-08 15:14 ` [PATCH v2 4/8] of: property: add device link support for io-backends Nuno Sa via B4 Relay
2023-12-08 15:14 ` [PATCH v2 5/8] iio: buffer-dmaengine: export buffer alloc and free functions Nuno Sa via B4 Relay
2023-12-10 14:24   ` Jonathan Cameron
2023-12-11  9:36     ` Nuno Sá
2023-12-08 15:14 ` [PATCH v2 6/8] iio: add the IIO backend framework Nuno Sa via B4 Relay
2023-12-10 14:28   ` Jonathan Cameron
2023-12-08 15:14 ` [PATCH v2 7/8] iio: adc: ad9467: convert to " Nuno Sa via B4 Relay
2023-12-08 15:14 ` [PATCH v2 8/8] iio: adc: adi-axi-adc: move " Nuno Sa via B4 Relay
2023-12-08 15:30 ` [PATCH v2 0/8] iio: add new " Conor Dooley
2023-12-09 14:32   ` Nuno Sá [this message]
2023-12-10 14:04     ` Conor Dooley

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=a59232317228f2d459a9c3fba63596daec988520.camel@gmail.com \
    --to=noname.nuno@gmail.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jic23@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=olivier.moysan@foss.st.com \
    --cc=rafael@kernel.org \
    --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).