mec1322: Fixed incorrect value passed to I2C unwedge function.

BUG=chrome-os-partner:40175
TEST=Check i2c_unwedge is called with a valid port number by using debug print.
BRANCH=none

Change-Id: Ibc8e441116441b526c872a9cb33cb252650bca5a
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/272769
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Kevin K Wong
2015-05-22 00:11:34 -07:00
committed by ChromeOS Commit Bot
parent 42faec2124
commit 18ff8dca1b

View File

@@ -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);