omap: Fix wrong condition check in while loop for mailbox and iommu2

It's worked fine so far since reset is done for the first time.

Reported-by: Juha Leppanen <juha_motorsportcom@luukku.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Juha Leppanen <juha_motorsportcom@luukku.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Hiroshi DOYU 2009-09-28 09:21:26 -07:00 committed by Tony Lindgren
parent 0fd92a15a0
commit 055c49d285
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ static int omap2_iommu_enable(struct iommu *obj)
l = iommu_read_reg(obj, MMU_SYSSTATUS); l = iommu_read_reg(obj, MMU_SYSSTATUS);
if (l & MMU_SYS_RESETDONE) if (l & MMU_SYS_RESETDONE)
break; break;
} while (time_after(jiffies, timeout)); } while (!time_after(jiffies, timeout));
if (!(l & MMU_SYS_RESETDONE)) { if (!(l & MMU_SYS_RESETDONE)) {
dev_err(obj->dev, "can't take mmu out of reset\n"); dev_err(obj->dev, "can't take mmu out of reset\n");

View File

@ -93,7 +93,7 @@ static int omap2_mbox_startup(struct omap_mbox *mbox)
l = mbox_read_reg(MAILBOX_SYSSTATUS); l = mbox_read_reg(MAILBOX_SYSSTATUS);
if (l & RESETDONE) if (l & RESETDONE)
break; break;
} while (time_after(jiffies, timeout)); } while (!time_after(jiffies, timeout));
if (!(l & RESETDONE)) { if (!(l & RESETDONE)) {
pr_err("Can't take mmu out of reset\n"); pr_err("Can't take mmu out of reset\n");