[PATCH] omap: mailbox: Fix wrong condition check in while loop
Hiroshi DOYU
Hiroshi.DOYU at nokia.com
Mon Sep 28 12:21:26 EDT 2009
It's worked fine so far since reset is done for the first time.
Reported-by: Juha Leppanen <juha_motorsportcom at luukku.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU at nokia.com>
Signed-off-by: Juha Leppanen <juha_motorsportcom at luukku.com>
Signed-off-by: Tony Lindgren <tony at atomide.com>
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c
index f3fefca..c035ad3 100644
--- a/arch/arm/mach-omap2/mailbox.c
+++ b/arch/arm/mach-omap2/mailbox.c
@@ -93,7 +93,7 @@ static int omap2_mbox_startup(struct omap_mbox *mbox)
l = mbox_read_reg(MAILBOX_SYSSTATUS);
if (l & RESETDONE)
break;
- } while (time_after(jiffies, timeout));
+ } while (!time_after(jiffies, timeout));
if (!(l & RESETDONE)) {
pr_err("Can't take mmu out of reset\n");
--6c2NcOVqGQ03X4Wi--
More information about the linux-arm-kernel
mailing list