Re: [PATCH] i2c: omap: do not deselect the mux-state twice in remove()

From: Andi Shyti

Date: Thu Nov 26 2026 - 17:52:32 EST


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@xxxxxxxxx>

pushed to i2c/i2c-fixes.

Thanks,
Andi