[PATCH] x86: increase timeout for EHCI debug port reset completion in early printk

From: Jan Beulich
Date: Fri Sep 04 2009 - 04:13:56 EST


On one of my systems, several thousand iterations are needed before
CMD_RESET can be observed clear after setting it. Using a much higher
value here obviously cannot hurt.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Cc: Yinghai Lu <yhlu.kernel@xxxxxxxxx>

---
arch/x86/kernel/early_printk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.31-rc8/arch/x86/kernel/early_printk.c 2009-06-10 05:05:27.000000000 +0200
+++ 2.6.31-rc8-x86-earlyprintk-dbgp-reset/arch/x86/kernel/early_printk.c 2009-09-02 12:13:01.000000000 +0200
@@ -624,7 +624,7 @@ try_next_port:
return -1;
}

- loop = 10;
+ loop = 100000;
/* Reset the EHCI controller */
cmd = readl(&ehci_regs->command);
cmd |= CMD_RESET;



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/