Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68600
b: refs/heads/master
c: a202707
h: refs/heads/master
v: v3
  • Loading branch information
Chris David authored and Jean Delvare committed Oct 13, 2007
1 parent 36e691a commit 509f1bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 6662cbb989ee71712176570759bdc4e596aed417
refs/heads/master: a202707e71ff16d5e3a92f40eeaa41f3099dd8c5
11 changes: 4 additions & 7 deletions trunk/drivers/i2c/busses/i2c-au1550.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,14 @@ wait_xfer_done(struct i2c_au1550_data *adap)

sp = (volatile psc_smb_t *)(adap->psc_base);

/* Wait for Tx FIFO Underflow.
/* Wait for Tx Buffer Empty
*/
for (i = 0; i < adap->xfer_timeout; i++) {
stat = sp->psc_smbevnt;
stat = sp->psc_smbstat;
au_sync();
if ((stat & PSC_SMBEVNT_TU) != 0) {
/* Clear it. */
sp->psc_smbevnt = PSC_SMBEVNT_TU;
au_sync();
if ((stat & PSC_SMBSTAT_TE) != 0)
return 0;
}

udelay(1);
}

Expand Down

0 comments on commit 509f1bb

Please sign in to comment.