We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29ee081 + 77e4a3f commit 7b88e17Copy full SHA for 7b88e17
drivers/i2c/i2c_npcx_controller.c
@@ -914,7 +914,8 @@ static void i2c_ctrl_isr(const struct device *dev)
914
tmp = i2c_ctrl_fifo_read(dev);
915
916
LOG_ERR("Bus error occurred on i2c port%02x!", data->port);
917
- data->oper_state = NPCX_I2C_ERROR_RECOVERY;
+ if (data->oper_state != NPCX_I2C_IDLE)
918
+ data->oper_state = NPCX_I2C_ERROR_RECOVERY;
919
920
/* I/O error occurred */
921
i2c_ctrl_notify(dev, -EIO);
0 commit comments