]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6043/1: AT91 slow-clock resume: Don't wait for a disabled PLL to lock
authorAnders Larsen <al@alarsen.net>
Thu, 8 Apr 2010 10:48:16 +0000 (11:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 Apr 2010 07:31:04 +0000 (08:31 +0100)
commit46ded39f16c0189656d6a977dc26312b29439a23
treee55e3f1a8ba2f1dee33a3d189061027e34fd4c15
parent4e2de1966d93d7e6ee0856e821c658c29060cad9
ARM: 6043/1: AT91 slow-clock resume: Don't wait for a disabled PLL to lock

at91 slow-clock resume: Don't wait for a disabled PLL to lock.

We run into this problem with the PLLB on the at91: ohci-at91 disables
the PLLB when going to suspend. The slowclock code however tries to do
the same: It saves the PLLB register value and when restoring the value
during resume, it waits for the PLLB to lock again. However the PLL will
never lock and the loop would run into its timeout because the slowclock
code just stored and restored an empty register.
This fixes the problem by only restoring PLLA/PLLB when they were enabled
at suspend time.

Cc: Andrew Victor <avictor.za@gmail.com>
Signed-off-by: Anders Larsen <al@alarsen.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/pm_slowclock.S