qup_i2c: Fix logical check on transaction flags
Change-Id: I2a45d1125ddf40a865a0d9a573f354428975062c Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
This commit is contained in:
committed by
Linux Build Service Account
parent
e60096da0f
commit
24bea430d4
@@ -527,7 +527,7 @@ qup_issue_write(struct qup_i2c_dev *dev, struct i2c_msg *msg, int rem,
|
|||||||
*/
|
*/
|
||||||
if (rem > 1) {
|
if (rem > 1) {
|
||||||
struct i2c_msg *next = msg + 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)) {
|
&& *idx == ((dev->wr_sz*2) - 4)) {
|
||||||
writel_relaxed(((last_entry |
|
writel_relaxed(((last_entry |
|
||||||
msg->buf[dev->pos]) |
|
msg->buf[dev->pos]) |
|
||||||
|
|||||||
Reference in New Issue
Block a user