qup_i2c: Fix logical check on transaction flags

Change-Id: I2a45d1125ddf40a865a0d9a573f354428975062c
Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
This commit is contained in:
Harini Jayaraman
2011-10-11 16:06:28 -06:00
committed by Linux Build Service Account
parent e60096da0f
commit 24bea430d4

View File

@@ -527,7 +527,7 @@ qup_issue_write(struct qup_i2c_dev *dev, struct i2c_msg *msg, int rem,
*/
if (rem > 1) {
struct i2c_msg *next = msg + 1;
if (next->addr == msg->addr && (next->flags | I2C_M_RD)
if (next->addr == msg->addr && (next->flags & I2C_M_RD)
&& *idx == ((dev->wr_sz*2) - 4)) {
writel_relaxed(((last_entry |
msg->buf[dev->pos]) |