From: sashiko-bot@kernel.org
To: "Taha Ed-Dafili" <0rayn.dev@gmail.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v6 6/6] iio: dac: ad5504: support scale via output-range-microvolt property
Date: Sat, 22 Aug 2026 09:10:12 +0000 [thread overview]
Message-ID: <20260822091013.6CB221F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260822085850.17527-7-0rayn.dev@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The driver ignores the unified 'output-range-microvolt' device property for ACPI nodes.
--
--- Patch [6]: [PATCH v6 6/6] iio: dac: ad5504: support scale via output-range-microvolt property ---
commit b4531e8367c77df3a5fc929eab7e4b61b58ad05a
Author: Taha Ed-Dafili <0rayn.dev@gmail.com>
iio: dac: ad5504: support scale via output-range-microvolt property
This commit introduces the output-range-microvolt device property to
configure the vref_mv scale directly from firmware. It provides a fallback
to the vcc regulator voltage for older device trees that do not have this
property.
> diff --git a/drivers/iio/dac/ad5504.c b/drivers/iio/dac/ad5504.c
> index d22bb16e911b9..9ad9d0666e271 100644
> --- a/drivers/iio/dac/ad5504.c
> +++ b/drivers/iio/dac/ad5504.c
> @@ -315,12 +316,30 @@ static int ad5504_probe(struct spi_device *spi)
> if (is_acpi_device_node(dev_fwnode(dev))) {
> st->vref_mv = AD5504_VREF_ACPI_DEFAULT_mV;
> } else {
> + if (device_property_present(dev, "output-range-microvolt")) {
[Severity: Medium]
Does this structure prevent ACPI devices from utilizing the newly added
output-range-microvolt property?
Since the device_property_present() check in ad5504_probe() is located inside
the else block of the is_acpi_device_node() condition, an ACPI platform
specifying this property via _DSD will have it silently ignored. The driver
will instead always use the hardcoded AD5504_VREF_ACPI_DEFAULT_mV value.
Should the firmware-agnostic device property check occur before falling back
to the legacy ACPI-specific default?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260822085850.17527-1-0rayn.dev@gmail.com?part=6
next prev parent reply other threads:[~2026-08-22 9:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-22 8:56 [PATCH v6 0/6] iio: dac: ad5504: bindings, cleanups, locking, and scale fixes Taha Ed-Dafili
2026-08-22 8:56 ` [PATCH v6 1/6] dt-bindings: iio: dac: ad5504: add output-range and missing gpios Taha Ed-Dafili
2026-08-22 18:20 ` David Lechner
2026-08-22 19:36 ` Taha Ed-Dafili
2026-08-22 22:37 ` David Lechner
2026-08-23 1:36 ` Jonathan Cameron
2026-08-22 8:56 ` [PATCH v6 2/6] iio: dac: ad5504: Align headers with IWYU principle Taha Ed-Dafili
2026-08-22 8:56 ` [PATCH v6 3/6] iio: dac: ad5504: separate ACPI and DT paths Taha Ed-Dafili
2026-08-22 8:56 ` [PATCH v6 4/6] iio: dac: ad5504: remove legacy platform data support Taha Ed-Dafili
2026-08-22 8:56 ` [PATCH v6 5/6] iio: dac: ad5504: introduce local lock to protect state and spi transfers Taha Ed-Dafili
2026-08-22 8:56 ` [PATCH v6 6/6] iio: dac: ad5504: support scale via output-range-microvolt property Taha Ed-Dafili
2026-08-22 9:10 ` sashiko-bot [this message]
2026-08-22 18:24 ` David Lechner
2026-08-22 19:45 ` Taha Ed-Dafili
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=20260822091013.6CB221F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=0rayn.dev@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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