Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193169
b: refs/heads/master
c: 5cfafc1
h: refs/heads/master
i:
  193167: 0c727a1
v: v3
  • Loading branch information
Michael Hennerich authored and Ben Dooks committed May 19, 2010
1 parent dd8f204 commit fcb8749
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd7319a5289deb4e17beb8851d343e7930b32c3b
refs/heads/master: 5cfafc18f38aa6701f581bee875fb0b19f3b3b4b
12 changes: 12 additions & 0 deletions trunk/drivers/i2c/busses/i2c-bfin-twi.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ static void bfin_twi_handle_interrupt(struct bfin_twi_iface *iface)
write_MASTER_CTL(iface, 0);
SSYNC();
iface->result = -EIO;

if (mast_stat & LOSTARB)
dev_dbg(&iface->adap.dev, "Lost Arbitration\n");
if (mast_stat & ANAK)
dev_dbg(&iface->adap.dev, "Address Not Acknowledged\n");
if (mast_stat & DNAK)
dev_dbg(&iface->adap.dev, "Data Not Acknowledged\n");
if (mast_stat & BUFRDERR)
dev_dbg(&iface->adap.dev, "Buffer Read Error\n");
if (mast_stat & BUFWRERR)
dev_dbg(&iface->adap.dev, "Buffer Write Error\n");

/* if both err and complete int stats are set, return proper
* results.
*/
Expand Down

0 comments on commit fcb8749

Please sign in to comment.