]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commitad4a38d2187720a3d1442d693c99675ccd955f32
tree168ef207fe7fb5cd9bf01e30c8418a540540ff69
parentc517d838eb7d07bbe9507871fab3931deccff539
pm: at91: pm_slowclock: fix suspend/resume hang up in timeouts

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