devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Nuno Sa <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>,
	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 v3 0/8] iio: add new backend framework
Date: Thu, 14 Dec 2023 08:16:00 -0600	[thread overview]
Message-ID: <20231214141600.GA224419-robh@kernel.org> (raw)
In-Reply-To: <20231213-dev-iio-backend-v3-0-bb9f12a5c6dc@analog.com>

On Wed, Dec 13, 2023 at 04:02:31PM +0100, Nuno Sa wrote:
> v1:
>  https://lore.kernel.org/linux-iio/20231204144925.4fe9922f@jic23-huawei/T/#m222f5175273b81dbfe40b7f0daffcdc67d6cb8ff
> 
> v2:
>  https://lore.kernel.org/r/20231208-dev-iio-backend-v2-0-5450951895e1@analog.com
> 
> Changes in v3:
> - Patch 1:
>  * Use proposed generic schema [1]. Also make it a required property;
>  * Improved the commit message.
> - Patch 2:
>  * Improved commit message.
> - Patch 4:
>  * Namespace all IIO DMAENGINE buffer exports;
>  * Removed unrelated new line removal change.
> - Patch 5:
>  * Namespace all IIO backend exports.
> - Patch 6:
>  * Set backend.h in alphabetical order;
>  * Import IIO backend namespace.
> - Patch 7:
>  * Don't depend on OF in kbuild anymore;
>  * Import IIO backend namespace.
> 
> For the bindings patches, I tried not to enter into much details about
> the IIO framework as I think specifics of the implementation don't care
> from the bindings perspective. Hopefully the commit messages are good
> enough.
> 
> I'm also aware that patch 1 is not backward compatible but we are
> anyways doing it on the driver side (and on the driver the property is
> indeed required). Anyways, just let me know if making the property
> required is not acceptable (I'm fairly confident no one was using the
> upstream version of the driver and so validating devicetrees for it). 
> 
> Keeping the block diagram in v3's cover so we don't have to follow links
> to check the one of the typicals setups. 
> 
>                                            -------------------------------------------------------
>  ------------------                        | -----------         ------------      -------  FPGA |
>  |     ADC        |------------------------| | AXI ADC |---------| DMA CORE |------| RAM |       |
>  | (Frontend/IIO) | Serial Data (eg: LVDS) | |(backend)|---------|          |------|     |       |
>  |                |------------------------| -----------         ------------      -------       |
>  ------------------                        -------------------------------------------------------

Why doesn't axi-adc just have an io-channels property to adc? It's the 
opposite direction for the link, but it seems more logical to me that 
axi-adc depends on adc rather than the other way around.

And if there's another consumer in the chain, then a node could 
certainly be both an io-channels consumer and producer.

The architecture of the drivers seems odd to me. It looks similar to 
making a phy driver handle all the state and protocol with the host 
controller being a backend.

Rob

  parent reply	other threads:[~2023-12-14 14:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13 15:02 [PATCH v3 0/8] iio: add new backend framework Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 1/8] dt-bindings: adc: ad9467: add new io-backend property Nuno Sa via B4 Relay
2023-12-13 17:55   ` Rob Herring
2023-12-14 12:27     ` Nuno Sá
2023-12-14 17:05   ` Rob Herring
2023-12-15  7:52     ` Nuno Sá
2023-12-13 15:02 ` [PATCH v3 2/8] dt-bindings: adc: axi-adc: deprecate 'adi,adc-dev' Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 3/8] driver: core: allow modifying device_links flags Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 4/8] of: property: add device link support for io-backends Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 5/8] iio: buffer-dmaengine: export buffer alloc and free functions Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 6/8] iio: add the IIO backend framework Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 7/8] iio: adc: ad9467: convert to " Nuno Sa via B4 Relay
2023-12-13 15:02 ` [PATCH v3 8/8] iio: adc: adi-axi-adc: move " Nuno Sa via B4 Relay
2023-12-14 14:16 ` Rob Herring [this message]
2023-12-14 16:05   ` [PATCH v3 0/8] iio: add new " Nuno Sá
2023-12-14 17:03     ` Rob Herring
2023-12-15 15:18       ` Nuno Sá
2023-12-17 14:04         ` Jonathan Cameron
2023-12-18  8:31           ` Nuno Sá
2023-12-18 18:12             ` Jonathan Cameron
2023-12-20 14:17           ` Rob Herring
2023-12-20 14:56             ` Nuno Sá
2024-01-11 16:44         ` Olivier MOYSAN

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=20231214141600.GA224419-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=conor+dt@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 \
    /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).