From: Andi Shyti <andi.shyti@kernel.org>
To: Cong Nguyen <congnt264@gmail.com>
Cc: Vignesh R <vigneshr@ti.com>, Aaro Koskinen <aaro.koskinen@iki.fi>,
Andreas Kemnade <andreas@kemnade.info>,
Kevin Hilman <khilman@baylibre.com>,
Roger Quadros <rogerq@kernel.org>,
Tony Lindgren <tony@atomide.com>,
Josua Mayer <josua@solid-run.com>,
linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: omap: do not deselect the mux-state twice in remove()
Date: Thu, 26 Nov 2026 23:52:19 +0100 [thread overview]
Message-ID: <awi4D5ObQrLZ-sHc@zenone.zhora.eu> (raw)
In-Reply-To: <20261124092202.3766910-1-congnt264@gmail.com>
Hi Cong,
On Tue, Nov 24, 2026 at 04:22:02PM +0700, Cong Nguyen wrote:
> omap_i2c_probe() gets the mux-state with
> devm_mux_state_get_optional_selected(). The helper selects the mux and
> deselects it again when the device is released.
>
> omap_i2c_remove() also calls mux_state_deselect(), so the mux is
> deselected twice for one select. Drop the call from remove().
>
> This issue was found by auditing the driver with an LLM coding assistant.
>
> Fixes: 43c00f2bcff7 ("i2c: omap: switch to new generic helper for getting selected mux-state")
> Signed-off-by: Cong Nguyen <congnt264@gmail.com>
pushed to i2c/i2c-fixes.
Thanks,
Andi
prev parent reply other threads:[~2026-11-26 22:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 9:22 Cong Nguyen
2026-11-26 22:52 ` Andi Shyti [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=awi4D5ObQrLZ-sHc@zenone.zhora.eu \
--to=andi.shyti@kernel.org \
--cc=aaro.koskinen@iki.fi \
--cc=andreas@kemnade.info \
--cc=congnt264@gmail.com \
--cc=josua@solid-run.com \
--cc=khilman@baylibre.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=rogerq@kernel.org \
--cc=tony@atomide.com \
--cc=vigneshr@ti.com \
/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
all inboxes | Powered by JetHome®