Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33259
b: refs/heads/master
c: 3e3183b
h: refs/heads/master
i:
  33257: 3841c47
  33255: 1043504
v: v3
  • Loading branch information
David Woodhouse authored and Linus Torvalds committed Aug 6, 2006
1 parent 708ebcf commit b2b1260
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 225add619624b4877941470f31d297e0151b21be
refs/heads/master: 3e3183bab0257a6d02038658c53b491e1378612f
7 changes: 5 additions & 2 deletions trunk/drivers/i2c/busses/scx200_acb.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static void scx200_acb_poll(struct scx200_acb_iface *iface)
unsigned long timeout;

timeout = jiffies + POLL_TIMEOUT;
while (time_before(jiffies, timeout)) {
while (1) {
status = inb(ACBST);

/* Reset the status register to avoid the hang */
Expand All @@ -242,7 +242,10 @@ static void scx200_acb_poll(struct scx200_acb_iface *iface)
scx200_acb_machine(iface, status);
return;
}
yield();
if (time_after(jiffies, timeout))
break;
cpu_relax();
cond_resched();
}

dev_err(&iface->adapter.dev, "timeout in state %s\n",
Expand Down

0 comments on commit b2b1260

Please sign in to comment.