mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
i2c: ihs_i2c: Fix hold_bus control
Bus has to be held for repeated start regardless of read/write access. Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
3af0cdb137
commit
457491565b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue