diff options
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 2c795592f80e..6c8b56221324 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -664,10 +664,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_bus *i2c_bus, tegra_i2c_flush_fifos(i2c_dev); - /* Toggle the direction flag if rev dir is selected */ - if (msg->flags & I2C_M_REV_DIR_ADDR) - msg->flags ^= I2C_M_RD; - i2c_dev->msg_buf = msg->buf; i2c_dev->msg_buf_remaining = msg->len; i2c_dev->msg_err = I2C_ERR_NONE; @@ -728,10 +724,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_bus *i2c_bus, if (i2c_dev->is_dvc) dvc_i2c_mask_irq(i2c_dev, DVC_CTRL_REG3_I2C_DONE_INTR_EN); - /* Restore the message flag */ - if (msg->flags & I2C_M_REV_DIR_ADDR) - msg->flags ^= I2C_M_RD; - if (WARN_ON(ret == 0)) { dev_err(i2c_dev->dev, "i2c transfer timed out, addr 0x%04x, data 0x%02x\n", |