i2c: imx-lpi2c: add generic GPIO recovery for LPI2C
authorCarlos Song <carlos.song@nxp.com>
Mon, 26 Feb 2024 05:54:18 +0000 (13:54 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 6 Mar 2024 15:32:38 +0000 (16:32 +0100)
commit188542964e7823713e80416829a054fb867c7158
tree6bcffe9ab6499cd08c4a2a6a120b2d862af81d0a
parent747bdf912e22732e8de9bd04a2d3e387055604a8
i2c: imx-lpi2c: add generic GPIO recovery for LPI2C

This adds i2c bus recovery to the lpi2c driver.

Uses the generic recovery function setting the SCL/SDA pads as
GPIO pins and sending 9 clocks to try and recover the bus.

Signed-off-by: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-imx-lpi2c.c