Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Radu Sabau" <radu.sabau@analog.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 1/8] iio: imu: adis: Fix custom reset dispatch in adislib
Date: Mon, 02 Nov 2026 09:38:55 +0000	[thread overview]
Message-ID: <sashiko-outbox-193189@kernel.org> (raw)
In-Reply-To: <20261102-adis16607-v5-1-4f98b0d271ac@analog.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] iio: imu: adis: incorrect Fixes tag and stale changelog in reset dispatch fix
--

commit 5c3f86b0c40a0ca82129c2f9586aae278b0f7d2a
Author: Radu Sabau <radu.sabau@analog.com>

iio: imu: adis: Fix custom reset dispatch in adislib

This commit updates __adis_initial_startup() and adis_reset() to dispatch
software resets through adis->ops->reset() rather than calling
__adis_reset() directly, and moves the sw_reset_ms settle delay out of
__adis_reset() into both callers.

>     iio: imu: adis: Fix custom reset dispatch in adislib
>     
>     __adis_initial_startup()'s no-reset-gpio path called __adis_reset()
>     directly instead of adis->ops->reset(), silently ignoring any driver's
>     custom reset implementation. Invisible until now since
>     adis_default_ops.reset is __adis_reset() itself. Dispatch through
>     adis->ops->reset() instead - the same bug existed in the public
>     adis_reset() wrapper, fixed here too.
>     
>     Move the settle-time sleep out of __adis_reset() and into both call
>     sites instead, so every reset op (default or custom) is treated
>     uniformly: adis->ops->reset() is expected to just do the write, and
>     the library always sleeps the settle time afterwards. This removes
>     the previous asymmetric "sleep here only for custom ops" special
>     case entirely.
>     
>     Fixes: ecb010d44108 ("iio: imu: adis: Refactor adis_initial_startup")
>     Reviewed-by: Nuno Sá <nuno.sa@analog.com>
>     Signed-off-by: Radu Sabau <radu.sabau@analog.com>

[Severity: Low]
Should the Fixes tag reference the commit that introduced the custom reset
callback instead?

Commit ecb010d44108 ("iio: imu: adis: Refactor adis_initial_startup")
predates struct adis_ops (added in commit 3b29bcee8f6f ("iio: imu: adis:
Add custom ops struct")). The custom reset callback adis->ops->reset was
introduced in commit 7f15d7a7d12d ("iio: imu: adis: Add reset to custom
ops"), which added reset to struct adis_ops without updating
__adis_initial_startup() or adis_reset() to call adis->ops->reset(). Should
this use:

  Fixes: 7f15d7a7d12d ("iio: imu: adis: Add reset to custom ops")

Also, is the commit message description accurate for the current baseline
tree?

The first paragraph mentions that the issue was invisible until now, but
drivers/iio/imu/adis16550.c already defines a custom reset callback in
adis16550_ops:

static const struct adis_ops adis16550_ops = {
	.write = adis16550_spi_write,
	.read = adis16550_spi_read,
	.reset = adis16550_reset,
};

In addition, the second paragraph states that this change removes a
previous asymmetric "sleep here only for custom ops" special case, which
does not exist in the baseline code prior to this patch. Could the commit
message be updated to reflect the current tree state?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261102-adis16607-v5-0-4f98b0d271ac@analog.com?part=1

  reply	other threads:[~2026-11-02  9:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02  9:25 [PATCH v5 0/8] iio: imu: Add support for the ADI ADIS16607 Radu Sabau via B4 Relay
2026-11-02  9:25 ` [PATCH v5 1/8] iio: imu: adis: Fix custom reset dispatch in adislib Radu Sabau via B4 Relay
2026-11-02  9:38   ` sashiko-bot [this message]
2026-11-03 13:13     ` Sabau, Radu bogdan
2026-11-02  9:25 ` [PATCH v5 2/8] iio: imu: adis: Add optional self_test callback Radu Sabau via B4 Relay
2026-11-02  9:25 ` [PATCH v5 3/8] iio: imu: adis: Add optional init callback Radu Sabau via B4 Relay
2026-11-02  9:25 ` [PATCH v5 4/8] dt-bindings: iio: imu: Add bindings for ADI ADIS16607 Radu Sabau via B4 Relay
2026-11-02 19:36   ` Conor Dooley
2026-11-03 10:55     ` Krzysztof Kozlowski
2026-11-03 12:15       ` Sabau, Radu bogdan
2026-11-02  9:25 ` [PATCH v5 5/8] iio: imu: Add driver for the " Radu Sabau via B4 Relay
2026-11-02  9:25 ` [PATCH v5 6/8] iio: imu: adis16607: Add FIFO-based buffered/triggered capture Radu Sabau via B4 Relay
2026-11-02  9:47   ` sashiko-bot
2026-11-03 12:49     ` Sabau, Radu bogdan
2026-11-02  9:25 ` [PATCH v5 7/8] iio: imu: adis16607: Add external clock sync support Radu Sabau via B4 Relay
2026-11-02  9:42   ` sashiko-bot
2026-11-03 13:02     ` Sabau, Radu bogdan
2026-11-02  9:25 ` [PATCH v5 8/8] iio: imu: adis16607: Add calibration bias support for gyro/accel Radu Sabau via B4 Relay

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=sashiko-outbox-193189@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=radu.sabau@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