提交 45749156 编写于 作者: D Dirk Eibach 提交者: Tom Rini

i2c: ihs_i2c: Fix hold_bus control

Bus has to be held for repeated start regardless of
read/write access.
Signed-off-by: NDirk Eibach <dirk.eibach@gdsys.cc>
Acked-by: NHeiko Schocher <hs@denx.de>
上级 3af0cdb1
......@@ -135,7 +135,7 @@ static int ihs_i2c_access(struct i2c_adapter *adap, uchar chip, uint addr,
if (len <= 0)
return 1;
if (ihs_i2c_address(chip, addr, alen, !read))
if (ihs_i2c_address(chip, addr, alen, len))
return 1;
while (len) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册