Re: [PATCH] i2c: i2c-imx: allow bus recovery on non-muxable pads

From: esben
Date: Tue Dec 19 2023 - 03:14:11 EST


Gregor Herburger <gregor.herburger@xxxxxxxxxxxxxxx> writes:

> Currently the i2c-imx driver assumes that for bus recovery the i2c pins
> can be reconfigured as gpio via pinctrl.
>
> But bus recovery can also be done with a gpio electrically connected to
> i2c scl.
>
> Modify i2c_imx_init_recovery_info to allow bus recovery on platforms
> without pinctrl. In this case only use scl-gpio and
> i2c_generic_scl_recovery.

Why not move to use the generic GPIO recovery instead? Will something
like this be able to cover at least the same scenarios as your change?