Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271595
b: refs/heads/master
c: 4403988
h: refs/heads/master
i:
  271593: d6b635a
  271591: b2355cf
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 30, 2011
1 parent bae9820 commit fb57087
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abc01b2718ee1d26e83c4c62c4b79806b3240ac7
refs/heads/master: 4403988afc0a92b8faf59b46f51d25fafaf0e63d
6 changes: 4 additions & 2 deletions trunk/drivers/i2c/algos/i2c-algo-pca.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
} else {
dev_dbg(&i2c_adap->dev, "bus is not idle. status is "
"%#04x\n", state);
return -EAGAIN;
return -EBUSY;
}
}

Expand Down Expand Up @@ -224,7 +224,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
}

curmsg = 0;
ret = -EREMOTEIO;
ret = -EIO;
while (curmsg < num) {
state = pca_status(adap);

Expand Down Expand Up @@ -259,6 +259,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
case 0x20: /* SLA+W has been transmitted; NOT ACK has been received */
DEB2("NOT ACK received after SLA+W\n");
pca_stop(adap);
ret = -ENXIO;
goto out;

case 0x40: /* SLA+R has been transmitted; ACK has been received */
Expand All @@ -283,6 +284,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
case 0x48: /* SLA+R has been transmitted; NOT ACK has been received */
DEB2("NOT ACK received after SLA+R\n");
pca_stop(adap);
ret = -ENXIO;
goto out;

case 0x30: /* Data byte in I2CDAT has been transmitted; NOT ACK has been received */
Expand Down

0 comments on commit fb57087

Please sign in to comment.