Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101311
b: refs/heads/master
c: dcb5c92
h: refs/heads/master
i:
  101309: a9989de
  101307: 1f7932f
  101303: 62badbf
  101295: 38f1ad8
  101279: c3b7c5d
  101247: f8eb2d6
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Jul 14, 2008
1 parent ebd46e2 commit 00b4a66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 90df2cb1c8822ef8d06a2b30627e7a810218b0dd
refs/heads/master: dcb5c9239de8d3ff1c663e75f0f1c75bcb21ee20
10 changes: 4 additions & 6 deletions trunk/drivers/i2c/busses/i2c-i801.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,8 @@ static int i801_transaction(int xact)
}

if (temp & SMBHSTSTS_BUS_ERR) {
result = -EIO;
dev_err(&I801_dev->dev, "Bus collision! SMBus may be locked "
"until next hard reset. (sorry!)\n");
/* Clock stops and slave is stuck in mid-transmission */
result = -EAGAIN;
dev_dbg(&I801_dev->dev, "Lost arbitration\n");
}

if (temp & SMBHSTSTS_DEV_ERR) {
Expand Down Expand Up @@ -339,8 +337,8 @@ static int i801_block_transaction_byte_by_byte(union i2c_smbus_data *data,
dev_dbg(&I801_dev->dev,
"Error: Failed bus transaction\n");
} else if (temp & SMBHSTSTS_BUS_ERR) {
result = -EIO;
dev_err(&I801_dev->dev, "Bus collision!\n");
result = -EAGAIN;
dev_dbg(&I801_dev->dev, "Lost arbitration\n");
} else if (temp & SMBHSTSTS_DEV_ERR) {
result = -ENXIO;
dev_dbg(&I801_dev->dev, "Error: no response!\n");
Expand Down

0 comments on commit 00b4a66

Please sign in to comment.