OMAP3: PM: Ack pending interrupts before entering suspend

Suspending drivers may still generate interrupts just before their suspend is
completed. Any pending interrupts here will prevent sleep.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:
Tero Kristo
2009-10-23 19:03:48 +03:00
committed by Kevin Hilman
parent 7284ce6c9f
commit 2bbe3af3f1
3 changed files with 9 additions and 0 deletions

View File

@ -274,4 +274,10 @@ void omap_intc_restore_context(void)
}
/* MIRs are saved and restore with other PRCM registers */
}
void omap3_intc_suspend(void)
{
/* A pending interrupt would prevent OMAP from entering suspend */
omap_ack_irq(0);
}
#endif /* CONFIG_ARCH_OMAP3 */