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:
f39901c
)
i2c: mv64xxx: Fix transfer error code
author
Guenter Roeck
<linux@roeck-us.net>
Wed, 19 Jun 2013 21:53:52 +0000
(14:53 -0700)
committer
Wolfram Sang
<wsa@the-dreams.de>
Tue, 25 Jun 2013 16:42:19 +0000
(18:42 +0200)
The driver returns -ENODEV as error code if it did not get an ACK
from the device. Per Documentation/i2c/fault-codes, it should
return -ENXIO.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-mv64xxx.c
b/drivers/i2c/busses/i2c-mv64xxx.c
index 7a0e39b7f928382184a971393647e91c332aca73..ed854573b42732f832d0e14d4a9ce7317626b3b7 100644
(file)
--- a/
drivers/i2c/busses/i2c-mv64xxx.c
+++ b/
drivers/i2c/busses/i2c-mv64xxx.c
@@
-280,7
+280,7
@@
mv64xxx_i2c_fsm(struct mv64xxx_i2c_data *drv_data, u32 status)
/* Doesn't seem to be a device at other end */
drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP;
drv_data->state = MV64XXX_I2C_STATE_IDLE;
- drv_data->rc = -EN
ODEV
;
+ drv_data->rc = -EN
XIO
;
break;
default: