sonic-linux-kernel icon indicating copy to clipboard operation
sonic-linux-kernel copied to clipboard

Problems encountered by i2c-i801 drivers

Open philo-micas opened this issue 1 year ago • 0 comments

Code Path:drivers/i2c/busses/i2c-i801.c

Issue 1:“SMBus is busy, can't use it!”Error happens sometimes. The I2C controller cannot be used. Issue 2:An occasional I2C deadlock (SCL is high voltage level and SDA is low voltage level) cannot be recovered, making the I2C controller unusable.

Regarding this issue, our solution is:

Issue1:The cause of SMBus Busy is unknown. At present, we have added controller reset logic. When SMBus Busy occurs, the controller is reset, so that the I2C controller can be recovered after a fault occurs. Issue2: The cause of I2C deadlock is unknown. Now, we have added the I2C nine clocks function. Before I2C transmission, the driver checks whether I2C deadlock occurs (SCL is high voltage level and SDA is low voltage level). If the I2C deadlock occurs, nine clocks are sent to unlock the device

philo-micas avatar Oct 11 '23 06:10 philo-micas