projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3af0cdb
)
i2c: ihs_i2c: Fix hold_bus control
author
Dirk Eibach
<dirk.eibach@gdsys.cc>
Wed, 28 Oct 2015 10:46:24 +0000
(11:46 +0100)
committer
Tom Rini
<trini@konsulko.com>
Thu, 12 Nov 2015 20:59:02 +0000
(15:59 -0500)
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>
drivers/i2c/ihs_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/ihs_i2c.c
b/drivers/i2c/ihs_i2c.c
index
e001459
..
b05c15f
100644
(file)
--- 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) {