[PATCH 1/3] i2c: add init_recovery() callback

Linus Walleij linus.walleij at linaro.org
Tue May 13 06:32:01 PDT 2025


Szía Gabor,

köszönöm a patch-et!

On Sun, May 11, 2025 at 3:31 PM Gabor Juhos <j4g8y7 at gmail.com> wrote:

> Add a new init_recovery() callback to struct 'i2c_bus_recovery_info'
> and modify the i2c_init_recovery() function to call that if specified
> instead of the generic i2c_gpio_init_recovery() function.
>
> This allows controller drivers to skip calling the generic code by
> implementing a dummy callback function, or alternatively to run a
> fine tuned custom implementation.
>
> This is needed for the 'i2c-pxa' driver in order to be able to fix
> a long standing bug for which the fix will be implemented in a
> followup patch.
>
> Cc: stable at vger.kernel.org # 6.3+
> Signed-off-by: Gabor Juhos <j4g8y7 at gmail.com>
> Signed-off-by: Imre Kaloz <kaloz at openwrt.org>

Clearly, since the same problems keeps appearing on other
platforms as well, this is the right way to go!
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list