summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Eibach <dirk.eibach@gdsys.cc>2015-10-28 11:46:24 +0100
committerTom Rini <trini@konsulko.com>2015-11-12 15:59:02 -0500
commit457491565b7d33b73829d911976f87027f450daf (patch)
treeef9ae6248c6a8deb320d4b7fa3db5a4a57395238
parent3af0cdb137b5a94751913467615d7e961271a69c (diff)
downloadu-boot-457491565b7d33b73829d911976f87027f450daf.tar.gz
u-boot-457491565b7d33b73829d911976f87027f450daf.tar.xz
u-boot-457491565b7d33b73829d911976f87027f450daf.zip
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>
-rw-r--r--drivers/i2c/ihs_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c
index e0014590b5..b05c15f8cb 100644
--- a/drivers/i2c/ihs_i2c.c
+++ b/drivers/i2c/ihs_i2c.c
@@ -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) {