From: "Nuno Sá" <noname.nuno@gmail.com>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>,
jic23@kernel.org, robh@kernel.org, conor+dt@kernel.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 04/11] iio: backend: add support for number of lanes
Date: Tue, 29 Apr 2025 09:19:04 +0100 [thread overview]
Message-ID: <dc2a7cd3bff229dc70255ed1d2def98739754a4c.camel@gmail.com> (raw)
In-Reply-To: <20250425112538.59792-5-antoniu.miclaus@analog.com>
On Fri, 2025-04-25 at 14:25 +0300, Antoniu Miclaus wrote:
> Add iio backend support for number of lanes to be enabled.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> ---
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
> no changes in v3.
> drivers/iio/industrialio-backend.c | 17 +++++++++++++++++
> include/linux/iio/backend.h | 3 +++
> 2 files changed, 20 insertions(+)
>
> diff --git a/drivers/iio/industrialio-backend.c b/drivers/iio/industrialio-
> backend.c
> index f7c8167a248d..1063935cd808 100644
> --- a/drivers/iio/industrialio-backend.c
> +++ b/drivers/iio/industrialio-backend.c
> @@ -833,6 +833,23 @@ int iio_backend_sync_status_get(struct iio_backend *back,
> bool *sync_en)
> }
> EXPORT_SYMBOL_NS_GPL(iio_backend_sync_status_get, "IIO_BACKEND");
>
> +/**
> + * iio_backend_num_lanes_set - Number of lanes enabled.
> + * @back: Backend device
> + * @num_lanes: Number of lanes.
> + *
> + * RETURNS:
> + * 0 on success, negative error number on failure.
> + */
> +int iio_backend_num_lanes_set(struct iio_backend *back, unsigned int
> num_lanes)
> +{
> + if (!num_lanes)
> + return -EINVAL;
> +
> + return iio_backend_op_call(back, num_lanes_set, num_lanes);
> +}
> +EXPORT_SYMBOL_NS_GPL(iio_backend_num_lanes_set, "IIO_BACKEND");
> +
> /**
> * iio_backend_ddr_enable - Enable interface DDR (Double Data Rate) mode
> * @back: Backend device
> diff --git a/include/linux/iio/backend.h b/include/linux/iio/backend.h
> index e93d1a98e066..c8bcfe96c542 100644
> --- a/include/linux/iio/backend.h
> +++ b/include/linux/iio/backend.h
> @@ -112,6 +112,7 @@ enum iio_backend_filter_type {
> * @data_alignment_enable: Enable sync process.
> * @data_alignment_disable: Disable sync process.
> * @sync_status_get: Get the syncronization status (enabled/disabled).
> + * @num_lanes_set: Set the number of lanes enabled.
> * @ddr_enable: Enable interface DDR (Double Data Rate) mode.
> * @ddr_disable: Disable interface DDR (Double Data Rate) mode.
> * @data_stream_enable: Enable data stream.
> @@ -167,6 +168,7 @@ struct iio_backend_ops {
> int (*data_alignment_enable)(struct iio_backend *back);
> int (*data_alignment_disable)(struct iio_backend *back);
> int (*sync_status_get)(struct iio_backend *back, bool *sync_en);
> + int (*num_lanes_set)(struct iio_backend *back, unsigned int
> num_lanes);
> int (*ddr_enable)(struct iio_backend *back);
> int (*ddr_disable)(struct iio_backend *back);
> int (*data_stream_enable)(struct iio_backend *back);
> @@ -212,6 +214,7 @@ int iio_backend_filter_type_set(struct iio_backend *back,
> int iio_backend_data_alignment_enable(struct iio_backend *back);
> int iio_backend_data_alignment_disable(struct iio_backend *back);
> int iio_backend_sync_status_get(struct iio_backend *back, bool *sync_en);
> +int iio_backend_num_lanes_set(struct iio_backend *back, unsigned int
> num_lanes);
> int iio_backend_ddr_enable(struct iio_backend *back);
> int iio_backend_ddr_disable(struct iio_backend *back);
> int iio_backend_data_stream_enable(struct iio_backend *back);
next prev parent reply other threads:[~2025-04-29 8:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-25 11:25 [PATCH v3 00/11] Add support for AD4080 ADC Antoniu Miclaus
2025-04-25 11:25 ` [PATCH v3 01/11] iio: backend: add support for filter config Antoniu Miclaus
2025-04-26 13:14 ` Jonathan Cameron
2025-04-29 8:14 ` Nuno Sá
2025-04-25 11:25 ` [PATCH v3 02/11] iio: backend: add support for data alignment Antoniu Miclaus
2025-04-25 11:25 ` [PATCH v3 03/11] iio: backend: add support for sync status Antoniu Miclaus
2025-04-25 11:25 ` [PATCH v3 04/11] iio: backend: add support for number of lanes Antoniu Miclaus
2025-04-29 8:19 ` Nuno Sá [this message]
2025-04-25 11:25 ` [PATCH v3 05/11] dt-bindings: iio: adc: add ad408x axi variant Antoniu Miclaus
2025-04-25 11:25 ` [PATCH v3 06/11] iio: adc: adi-axi-adc: add filter type config Antoniu Miclaus
2025-04-29 8:18 ` Nuno Sá
2025-04-25 11:25 ` [PATCH v3 07/11] iio: adc: adi-axi-adc: add sync enable/disable Antoniu Miclaus
2025-04-29 8:28 ` Nuno Sá
2025-04-29 17:22 ` David Lechner
2025-04-25 11:25 ` [PATCH v3 08/11] iio: adc: adi-axi-adc: add sync status Antoniu Miclaus
2025-04-25 11:25 ` [PATCH v3 09/11] iio: adc: adi-axi-adc: add num lanes support Antoniu Miclaus
2025-04-29 8:26 ` Nuno Sá
2025-04-29 17:26 ` David Lechner
2025-04-25 11:25 ` [PATCH v3 10/11] dt-bindings: iio: adc: add ad4080 Antoniu Miclaus
2025-04-25 11:25 ` [PATCH v3 11/11] iio: adc: ad4080: add driver support Antoniu Miclaus
2025-04-26 13:13 ` Jonathan Cameron
2025-04-26 16:48 ` kernel test robot
2025-04-29 8:46 ` Nuno Sá
2025-04-29 19:15 ` David Lechner
2025-04-30 12:31 ` Miclaus, Antoniu
2025-04-30 14:11 ` David Lechner
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=dc2a7cd3bff229dc70255ed1d2def98739754a4c.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@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).