aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/ohci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/ohci.c')
-rw-r--r--drivers/firewire/ohci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
index e291edaa5eef..3b6f3429fb4a 100644
--- a/drivers/firewire/ohci.c
+++ b/drivers/firewire/ohci.c
@@ -1200,12 +1200,13 @@ static void context_stop(struct context *ctx)
1200 reg_write(ctx->ohci, CONTROL_CLEAR(ctx->regs), CONTEXT_RUN); 1200 reg_write(ctx->ohci, CONTROL_CLEAR(ctx->regs), CONTEXT_RUN);
1201 ctx->running = false; 1201 ctx->running = false;
1202 1202
1203 for (i = 0; i < 10; i++) { 1203 for (i = 0; i < 1000; i++) {
1204 reg = reg_read(ctx->ohci, CONTROL_SET(ctx->regs)); 1204 reg = reg_read(ctx->ohci, CONTROL_SET(ctx->regs));
1205 if ((reg & CONTEXT_ACTIVE) == 0) 1205 if ((reg & CONTEXT_ACTIVE) == 0)
1206 return; 1206 return;
1207 1207
1208 mdelay(1); 1208 if (i)
1209 udelay(10);
1209 } 1210 }
1210 fw_error("Error: DMA context still active (0x%08x)\n", reg); 1211 fw_error("Error: DMA context still active (0x%08x)\n", reg);
1211} 1212}