Skip to content
Commit 9823f1a8 authored by Anders Larsen's avatar Anders Larsen Committed by Russell King
Browse files

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: default avatarAnders Larsen <al@alarsen.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bb3c9d4f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment