diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index c0b9aa7df0e2..6b69b7007f00 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c | |||
@@ -451,12 +451,12 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, | |||
451 | 451 | ||
452 | packet_header = msg->addr << I2C_HEADER_SLAVE_ADDR_SHIFT; | 452 | packet_header = msg->addr << I2C_HEADER_SLAVE_ADDR_SHIFT; |
453 | packet_header |= I2C_HEADER_IE_ENABLE; | 453 | packet_header |= I2C_HEADER_IE_ENABLE; |
454 | if (!stop) | ||
455 | packet_header |= I2C_HEADER_REPEAT_START; | ||
454 | if (msg->flags & I2C_M_TEN) | 456 | if (msg->flags & I2C_M_TEN) |
455 | packet_header |= I2C_HEADER_10BIT_ADDR; | 457 | packet_header |= I2C_HEADER_10BIT_ADDR; |
456 | if (msg->flags & I2C_M_IGNORE_NAK) | 458 | if (msg->flags & I2C_M_IGNORE_NAK) |
457 | packet_header |= I2C_HEADER_CONT_ON_NAK; | 459 | packet_header |= I2C_HEADER_CONT_ON_NAK; |
458 | if (msg->flags & I2C_M_NOSTART) | ||
459 | packet_header |= I2C_HEADER_REPEAT_START; | ||
460 | if (msg->flags & I2C_M_RD) | 460 | if (msg->flags & I2C_M_RD) |
461 | packet_header |= I2C_HEADER_READ; | 461 | packet_header |= I2C_HEADER_READ; |
462 | i2c_writel(i2c_dev, packet_header, I2C_TX_FIFO); | 462 | i2c_writel(i2c_dev, packet_header, I2C_TX_FIFO); |