pm: at91: pm_slowclock: fix suspend/resume hang up in timeouts
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Thu, 5 Feb 2015 06:00:37 +0000 (14:00 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 3 Mar 2015 18:43:59 +0000 (19:43 +0100)
Removed timeout on XTAL, PLL lock and Master Clock Ready, hang if
something went wrong instead of continuing in unknown condition. There
is not much we can do if a PLL lock never ends, we are running in SRAM
and we will not be able to connect back the sdram or ddram in order to
be able to fire up a message or just panic.

As a bonus, not decounting the timeout register in slow clock mode
reduce cumulated suspend time and resume time from ~17ms to ~15ms.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Acked-by: Wenyou.Yang <wenyou.yang@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/pm_slowclock.S

Simple merge