Skip to content

Commit

Permalink
Merge pull request zephyrproject-rtos#11 from FrameworkComputer/lotus…
Browse files Browse the repository at this point in the history
….do_not_recovery_i2c_bus

Lotus: don't recovery the i2c bus when the bus is idle
  • Loading branch information
kiram9 authored Dec 8, 2023
2 parents 29ee081 + 77e4a3f commit 7b88e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/i2c_npcx_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,8 @@ static void i2c_ctrl_isr(const struct device *dev)
tmp = i2c_ctrl_fifo_read(dev);

LOG_ERR("Bus error occurred on i2c port%02x!", data->port);
data->oper_state = NPCX_I2C_ERROR_RECOVERY;
if (data->oper_state != NPCX_I2C_IDLE)
data->oper_state = NPCX_I2C_ERROR_RECOVERY;

/* I/O error occurred */
i2c_ctrl_notify(dev, -EIO);
Expand Down

0 comments on commit 7b88e17

Please sign in to comment.