Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Moteen Shah" <m-shah@ti.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH RESEND v6 2/2] arm64: dts: ti: Add audio overlay for k3-j721s2-evm
Date: Tue, 14 Jul 2026 08:41:40 +0000	[thread overview]
Message-ID: <20260714084142.36D541F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260714082206.501922-3-m-shah@ti.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:

New issues:
- [Medium] The commit message claims to 'Add GPIO hogs to route I2C3 lines and McASP serializers', but I2C3 routing is implemented using a dynamically managed gpio-mux (mux-controller) rather than a static GPIO hog.

Pre-existing issues:
- [High] Adding the `mux-states` property to the `main_i2c3` node triggers a preexisting bug in the `i2c-omap` driver where the multiplexer control state is deselected twice on driver unbind, corrupting the multiplexer's semaphore lock.
--

--- Patch [2]: [PATCH RESEND v6 2/2] arm64: dts: ti: Add audio overlay for k3-j721s2-evm ---
commit b8739eb8a1b6fedb5e3ae2312559bc8686123be2
Author: Jayesh Choudhary <j-choudhary@ti.com>

arm64: dts: ti: Add audio overlay for k3-j721s2-evm

This patch adds a device tree overlay to enable analog audio support on the
J721S2-EVM. It configures the sound-card, audio codec, I2C3, and McASP4
along with their respective pinmux and signal routing settings.

> - Add GPIO hogs to route I2C3 lines and McASP serializers

[Severity: Medium]
Is this commit message description accurate for the I2C3 routing?

Looking at the added overlay, I2C3 routing is implemented using a
dynamically managed gpio-mux (mux-controller-2) rather than a static
GPIO hog.

> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-evm-audio.dtso b/arch/arm64/boot/dts/ti/k3-j721s2-evm-audio.dtso
> new file mode 100644
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-evm-audio.dtso
[ ... ]
> +&main_i2c3 {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&main_i2c3_pins_default>;
> +	clock-frequency = <400000>;
> +	mux-states = <&i2c_mux 1>;

[Severity: High]
This is a pre-existing issue, but adding this property exposes a latent
double-deselect bug in the i2c-omap driver during unbind.

The devm_mux_state_get_optional_selected() API registers a devres action
that automatically calls mux_state_deselect(). However, the unbind path
explicitly calls it again:

drivers/i2c/busses/i2c-omap.c:omap_i2c_remove() {
	...
	if (omap->mux_state)
		mux_state_deselect(omap->mux_state);
	...
}

Because mux_control_deselect() unconditionally executes up(&mux->lock),
would this double deselect increment the binary semaphore past 1 and
break mutual exclusion for the multiplexer?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260714082206.501922-1-m-shah@ti.com?part=2

      reply	other threads:[~2026-07-14  8:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14  8:22 [PATCH RESEND v6 0/2] Enable audio support for J721S2 EVM Moteen Shah
2026-07-14  8:22 ` [PATCH RESEND v6 1/2] dt-bindings: ti: Update audio-refclk binding and j721e system controller Moteen Shah
2026-07-14  8:22 ` [PATCH RESEND v6 2/2] arm64: dts: ti: Add audio overlay for k3-j721s2-evm Moteen Shah
2026-07-14  8:41   ` sashiko-bot [this message]

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=20260714084142.36D541F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=m-shah@ti.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