diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-designware.c b/drivers/i2c/busses/i2c-designware.c index 5ba7e55eb7f4..5a3bd74c81d5 100644 --- a/drivers/i2c/busses/i2c-designware.c +++ b/drivers/i2c/busses/i2c-designware.c | |||
@@ -419,7 +419,6 @@ static void | |||
419 | i2c_dw_read(struct dw_i2c_dev *dev) | 419 | i2c_dw_read(struct dw_i2c_dev *dev) |
420 | { | 420 | { |
421 | struct i2c_msg *msgs = dev->msgs; | 421 | struct i2c_msg *msgs = dev->msgs; |
422 | u32 addr = msgs[dev->msg_read_idx].addr; | ||
423 | int rx_valid; | 422 | int rx_valid; |
424 | 423 | ||
425 | for (; dev->msg_read_idx < dev->msgs_num; dev->msg_read_idx++) { | 424 | for (; dev->msg_read_idx < dev->msgs_num; dev->msg_read_idx++) { |
@@ -429,10 +428,6 @@ i2c_dw_read(struct dw_i2c_dev *dev) | |||
429 | if (!(msgs[dev->msg_read_idx].flags & I2C_M_RD)) | 428 | if (!(msgs[dev->msg_read_idx].flags & I2C_M_RD)) |
430 | continue; | 429 | continue; |
431 | 430 | ||
432 | /* different i2c client, reprogram the i2c adapter */ | ||
433 | if (msgs[dev->msg_read_idx].addr != addr) | ||
434 | return; | ||
435 | |||
436 | if (!(dev->status & STATUS_READ_IN_PROGRESS)) { | 431 | if (!(dev->status & STATUS_READ_IN_PROGRESS)) { |
437 | len = msgs[dev->msg_read_idx].len; | 432 | len = msgs[dev->msg_read_idx].len; |
438 | buf = msgs[dev->msg_read_idx].buf; | 433 | buf = msgs[dev->msg_read_idx].buf; |