diff --git a/chip/mec1322/i2c.c b/chip/mec1322/i2c.c index 3d86c1c881..badf74749e 100644 --- a/chip/mec1322/i2c.c +++ b/chip/mec1322/i2c.c @@ -239,8 +239,8 @@ int i2c_xfer(int port, int slave_addr, const uint8_t *out, int out_size, get_line_level(controller) & I2C_LINE_SCL_HIGH, get_line_level(controller) & I2C_LINE_SDA_HIGH); - /* Attempt to unwedge the controller. */ - i2c_unwedge(controller); + /* Attempt to unwedge the port. */ + i2c_unwedge(port); /* Bus error, bus busy, or arbitration lost. Try reset. */ reset_controller(controller);