[PATCH v12 6/7] i2c: mux: ltc4306: set correct idle_state in i2c_mux_core

Peter Rosin peda at lysator.liu.se
Thu Jul 23 04:05:49 PDT 2026


Hi!

On 2026-07-19 16:59, Marcus Folkesson wrote:
> Inform the core if we intend to disconnect channels during idle.
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson at gmail.com>
> ---
>   drivers/i2c/muxes/i2c-mux-ltc4306.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/i2c/muxes/i2c-mux-ltc4306.c b/drivers/i2c/muxes/i2c-mux-ltc4306.c
> index 18228f5b80e8..df7136b7b042 100644
> --- a/drivers/i2c/muxes/i2c-mux-ltc4306.c
> +++ b/drivers/i2c/muxes/i2c-mux-ltc4306.c
> @@ -232,6 +232,9 @@ static int ltc4306_probe(struct i2c_client *client)
>   	data = i2c_mux_priv(muxc);
>   	data->chip = chip;
>   
> +	if (idle_disc)
> +		i2c_mux_set_idle_state(muxc, I2C_MUX_IDLE_DISCONNECT);

Perhaps augment with

	else
		i2c_mux_set_idle_state(muxc, I2C_MUX_IDLE_AS_IS);

now that the default is IDLE_UNKNOWN.

Cheers,
Peter

> +
>   	i2c_set_clientdata(client, muxc);
>   
>   	data->regmap = devm_regmap_init_i2c(client, &ltc4306_regmap_config);
> 




More information about the linux-arm-kernel mailing list