My system can sleep and wake up from rtc. But sometimes its cant wakeup (http://e2e.ti.com/support/arm/sitara_arm/f/791/t/341374.aspx).
I add watchdog to my Linux 3.2. Without sleep its work fine. I wish that if system cant wake-up, watchdog will reboot my board.
I remove omap_wdt_suspend and omap_wdt_resume functions from omap_wdr.c kernel code.
But it not work. System not reboot after timeout:
# watchdog -T 20 -t 10 /dev/watchdog
# killall watchdog <- if I wait after here, system will reboot by watchdog
omap_wdt: Unexpected close, not stopping!
# echo standby > /sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
System does not reboot never.