Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256633
b: refs/heads/master
c: 9ef28cc
h: refs/heads/master
i:
  256631: b41e5fb
v: v3
  • Loading branch information
Stefan Richter committed Jul 9, 2011
1 parent 83bddf9 commit 37a7f65
Show file tree
Hide file tree
Showing 2 changed files with 4 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: dd6254e5c0efe01ad255188898cb3dadf98cb56d
refs/heads/master: 9ef28ccd59a23d219c4660f55a11ac06ca91f632
5 changes: 3 additions & 2 deletions trunk/drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,12 +1200,13 @@ static void context_stop(struct context *ctx)
reg_write(ctx->ohci, CONTROL_CLEAR(ctx->regs), CONTEXT_RUN);
ctx->running = false;

for (i = 0; i < 10; i++) {
for (i = 0; i < 1000; i++) {
reg = reg_read(ctx->ohci, CONTROL_SET(ctx->regs));
if ((reg & CONTEXT_ACTIVE) == 0)
return;

mdelay(1);
if (i)
udelay(10);
}
fw_error("Error: DMA context still active (0x%08x)\n", reg);
}
Expand Down

0 comments on commit 37a7f65

Please sign in to comment.