i2c: imx: move to generic GPIO recovery
authorEsben Haabendal <esben@geanix.com>
Thu, 25 Jan 2024 13:56:36 +0000 (14:56 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 8 Feb 2024 08:34:17 +0000 (09:34 +0100)
commitc0fcc4d9fc0784f8c11af0343092f8d945339431
tree0f3e5220316049ac2ef6c9e8ad155ecebefa8b60
parent4810603ce35482865c2f88d0cc09ff5caca12120
i2c: imx: move to generic GPIO recovery

Starting with
commit 75820314de26 ("i2c: core: add generic I2C GPIO recovery")
GPIO bus recovery is supported by the I2C core, so we can remove the
driver implementation and use that one instead.

As a nice side-effect, pinctrl becomes optional, allowing bus recovery on
LS1021A, which does not have such luxury, but can be wired up to use extra
fixed GPIO pins.

Note: The previous error messages about bus recovery not being supported is
dropped with this change. Given that it is perfectly possible to have platforms
where bus recovery works without pinctrl support, I happen to work on one such,
both error messages does not really make sense in those cases. And I don't see
how to know if this is the case or not.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-imx.c