Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179393
b: refs/heads/master
c: 7d53e79
h: refs/heads/master
i:
  179391: 43a1d6f
v: v3
  • Loading branch information
Márton Németh authored and Jean Delvare committed Jan 16, 2010
1 parent 7033729 commit 2ec59b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b6a3195070fe1c12d0bb1099ffe997d8abf9f602
refs/heads/master: 7d53e79f9ec2842269754efbe34f53aa480d99e3
8 changes: 4 additions & 4 deletions trunk/drivers/i2c/busses/i2c-ali1563.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ static int ali1563_transaction(struct i2c_adapter * a, int size)
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);

timeout = ALI1563_MAX_TIMEOUT;
do
do {
msleep(1);
while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout);
} while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout);

dev_dbg(&a->dev, "Transaction (post): STS=%02x, CNTL1=%02x, "
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
Expand Down Expand Up @@ -157,9 +157,9 @@ static int ali1563_block_start(struct i2c_adapter * a)
outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2);

timeout = ALI1563_MAX_TIMEOUT;
do
do {
msleep(1);
while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout);
} while (!((data = inb_p(SMB_HST_STS)) & HST_STS_DONE) && --timeout);

dev_dbg(&a->dev, "Block (post): STS=%02x, CNTL1=%02x, "
"CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n",
Expand Down

0 comments on commit 2ec59b3

Please sign in to comment.