From: sashiko-bot@kernel.org
To: "Janani Sunil" <janani.sunil@analog.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 04/17] iio: adc: adi-axi-adc: Add support for CRC
Date: Wed, 16 Sep 2026 11:25:41 +0000 [thread overview]
Message-ID: <20260916112541.80C591F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260916-ad7768-driver-v8-4-27aa24db5225@analog.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] iio: adc: adi-axi-adc: missing CRC callbacks for AD485X and AD408X backends
--
commit f224f9607f0c702705dd0b16aa9e1c0051158452
Author: Janani Sunil <janani.sunil@analog.com>
iio: adc: adi-axi-adc: Add support for CRC
This commit adds support for enabling and disabling Cyclic Redundancy Check
(CRC) processing in the AXI ADC backend. CRC provides data integrity
verification for high-speed ADC data streams.
> diff --git a/drivers/iio/adc/adi-axi-adc.c b/drivers/iio/adc/adi-axi-adc.c
> index fc7cc92b35f0a..8b7c45d51dbe8 100644
> --- a/drivers/iio/adc/adi-axi-adc.c
> +++ b/drivers/iio/adc/adi-axi-adc.c
[ ... ]
> @@ -644,6 +663,8 @@ static const struct iio_backend_ops adi_axi_adc_ops = {
> .num_lanes_set = axi_adc_num_lanes_set,
> .debugfs_reg_access = iio_backend_debugfs_ptr(axi_adc_reg_access),
> .debugfs_print_chan_status = iio_backend_debugfs_ptr(axi_adc_debugfs_print_chan_status),
> + .crc_enable = axi_adc_crc_enable,
> + .crc_disable = axi_adc_crc_disable,
> };
[Severity: Medium]
Are these callbacks also needed in the adi_ad485x_ops and adi_ad408x_ops
structures?
The patch adds crc_enable and crc_disable to the generic adi_axi_adc_ops,
but omits them from the variant-specific ops structures like adi_ad485x_ops
and adi_ad408x_ops.
Since the CRC enable bit is documented earlier in the patch as common to all
AXI ADC cores, omitting these callbacks might cause iio_backend_crc_enable()
to incorrectly return -EOPNOTSUPP for the AD485X and AD408X variants.
Would it be safer to wire these callbacks up for all backend variants that
share the ADI_AXI_ADC_CNTRL_3_CRC_EN_MASK bit?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260916-ad7768-driver-v8-0-27aa24db5225@analog.com?part=4
next prev parent reply other threads:[~2026-09-16 11:25 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 11:13 [PATCH v8 00/17] iio: adc: Add AD7768/AD7768-4 ADC driver support Janani Sunil
2026-09-16 11:13 ` [PATCH v8 01/17] iio: adc: adi-axi-adc: Initialize state mutex Janani Sunil
2026-09-16 11:13 ` [PATCH v8 02/17] dt-bindings: iio: adc: Add AD7768 Janani Sunil
2026-09-16 11:23 ` sashiko-bot
2026-09-16 11:13 ` [PATCH v8 03/17] iio: backend: Add support for CRC Janani Sunil
2026-09-16 11:13 ` [PATCH v8 04/17] iio: adc: adi-axi-adc: " Janani Sunil
2026-09-16 11:25 ` sashiko-bot [this message]
2026-09-16 11:13 ` [PATCH v8 05/17] iio: adc: Add AD7768 and AD7768-4 core support Janani Sunil
2026-09-16 11:29 ` sashiko-bot
2026-09-21 0:31 ` Jonathan Cameron
2026-09-16 11:13 ` [PATCH v8 06/17] iio: adc: ad7768: Validate master clock rate Janani Sunil
2026-09-16 11:13 ` [PATCH v8 07/17] iio: adc: ad7768: Add power mode helper Janani Sunil
2026-09-16 11:13 ` [PATCH v8 08/17] iio: adc: ad7768: Derive output data rates Janani Sunil
2026-09-16 11:13 ` [PATCH v8 09/17] iio: adc: ad7768: Configure channel sampling profiles Janani Sunil
2026-09-16 11:13 ` [PATCH v8 10/17] iio: adc: ad7768: Add sampling frequency controls Janani Sunil
2026-09-16 11:14 ` [PATCH v8 11/17] iio: adc: ad7768: Add per-channel filter controls Janani Sunil
2026-09-16 11:14 ` [PATCH v8 12/17] iio: adc: ad7768: Wait for digital filters to settle Janani Sunil
2026-09-16 11:14 ` [PATCH v8 13/17] iio: adc: ad7768: Add calibration controls Janani Sunil
2026-09-16 11:14 ` [PATCH v8 14/17] iio: adc: ad7768: Add per-channel conversion delay Janani Sunil
2026-09-16 11:14 ` [PATCH v8 15/17] iio: adc: ad7768: Add VCM regulator support Janani Sunil
2026-09-16 11:14 ` [PATCH v8 16/17] iio: adc: ad7768: Register GPIO auxiliary device Janani Sunil
2026-09-16 11:14 ` [PATCH v8 17/17] Documentation: iio: Add AD7768 Documentation Janani Sunil
2026-09-21 0:37 ` [PATCH v8 00/17] iio: adc: Add AD7768/AD7768-4 ADC driver support Jonathan Cameron
2026-09-21 8:46 ` Janani Sunil
2026-09-22 0:13 ` Jonathan Cameron
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=20260916112541.80C591F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=janani.sunil@analog.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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