projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bcb852
)
i2c: mux: make use of __i2c_smbus_xfer
author
Peter Rosin
<
[email protected]
>
Wed, 20 Jun 2018 08:51:57 +0000
(10:51 +0200)
committer
Wolfram Sang
<
[email protected]
>
Tue, 3 Jul 2018 20:57:55 +0000
(22:57 +0200)
Calling the __i2c_smbus_xfer wrapper in __i2c_mux_smbus_xfer provides
retries and thus makes the parent-locked case consistent with the both
mux-locked (i2c_mux_smbus_xfer) and the I2C transfer cases.
Signed-off-by: Peter Rosin <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
drivers/i2c/i2c-mux.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/i2c-mux.c
b/drivers/i2c/i2c-mux.c
index 300ab4b672e4992921b164a40d77d9e426fda305..221365eb7c05e12af92056f00f9af89dfb0eec72 100644
(file)
--- a/
drivers/i2c/i2c-mux.c
+++ b/
drivers/i2c/i2c-mux.c
@@
-87,8
+87,8
@@
static int __i2c_mux_smbus_xfer(struct i2c_adapter *adap,
ret = muxc->select(muxc, priv->chan_id);
if (ret >= 0)
- ret =
parent->algo->
smbus_xfer(parent, addr, flags,
-
read_write, command, size, data);
+ ret =
__i2c_
smbus_xfer(parent, addr, flags,
+ read_write, command, size, data);
if (muxc->deselect)
muxc->deselect(muxc, priv->chan_id);