]> git.baikalelectronics.ru Git - kernel.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)
commitda4ba7c7335d578c0cceb3273cef5832af9d127d
tree168ef207fe7fb5cd9bf01e30c8418a540540ff69
parentb7d65746744b343701de14ca433982a3229390be
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