AnsweredAssumed Answered

LS102xA I2C Bus Recovery

Question asked by Mike Bend on Jul 14, 2017
Latest reply on Dec 2, 2019 by Detlef Wolf



I am developing a device using the TQMLS102xA module by TQ. My device integrates with several slave devices over a hot-swappable i2c bus, and there are circumstances where an i2c slave device will lock the i2c bus, preventing any writes/reads to any device on the bus.


This comment suggests that the i2c bus recovery functionality can be added to the kernel i2c driver (I believe the LS102xa uses the drivers/i2c/busses/i2c-imx.c i2c implementation).


   a) The linked patch discussion suggests that it will not perform the bus recovery on the LS1021A. Is this correct? Is there any other way of performing the recovery when using an LS1021A?

   b) How can we trigger this bus recovery function from the userspace application using the i2c?