Commit c80ebe79 authored by Wolfram Sang's avatar Wolfram Sang Committed by Jean Delvare

i2c-pca-algo: Fix error code

Give a more concrete error code, when the bus is not idle.
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent ac7fc4fb
...@@ -182,7 +182,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap, ...@@ -182,7 +182,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
} }
if (state != 0xf8) { if (state != 0xf8) {
dev_dbg(&i2c_adap->dev, "bus is not idle. status is %#04x\n", state); dev_dbg(&i2c_adap->dev, "bus is not idle. status is %#04x\n", state);
return -EIO; return -EAGAIN;
} }
DEB1("{{{ XFER %d messages\n", num); DEB1("{{{ XFER %d messages\n", num);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment