aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/busses/i2c-designware-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c
index 066a2ba6aeda..c53058d6139c 100644
--- a/drivers/i2c/busses/i2c-designware-core.c
+++ b/drivers/i2c/busses/i2c-designware-core.c
@@ -611,7 +611,7 @@ i2c_dw_xfer_msg(struct dw_i2c_dev *dev)
611 if (msgs[dev->msg_write_idx].flags & I2C_M_RD) { 611 if (msgs[dev->msg_write_idx].flags & I2C_M_RD) {
612 612
613 /* avoid rx buffer overrun */ 613 /* avoid rx buffer overrun */
614 if (rx_limit - dev->rx_outstanding <= 0) 614 if (dev->rx_outstanding >= dev->rx_fifo_depth)
615 break; 615 break;
616 616
617 dw_writel(dev, cmd | 0x100, DW_IC_DATA_CMD); 617 dw_writel(dev, cmd | 0x100, DW_IC_DATA_CMD);