提交 2967f9ca 编写于 作者: W Wolfram Sang 提交者: Wolfram Sang

i2c: sh_mobile: avoid unnecessary register read

There is no data when the first WAIT interrupt arrives. No need to read
something then.
Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: NJacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 91701ae8
......@@ -433,8 +433,9 @@ static int sh_mobile_i2c_isr_rx(struct sh_mobile_i2c_data *pd)
break;
}
data = i2c_op(pd, OP_RX_STOP_DATA, 0);
} else
} else if (real_pos >= 0) {
data = i2c_op(pd, OP_RX, 0);
}
if (real_pos >= 0)
pd->msg->buf[real_pos] = data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册