Hi, attached are two patches which fix two problems with the at91 slowclock code: the first one fixes a problem during suspend: When turning off the PLLs, wait for the LOCKA/LOCKB flags to be unset instead of being set (which will never happen). The second patch fixes a problem of trying to turn on/off a PLL which was already disabled: ohci-at91 disables PLLB when going to suspend. The slowclock code however tries to do the same. In that case the slowclock code just stores and restores a 0 to the PLLB register which results in the wait_pllblock loop to hang until it reaches the timeout. This patches fixes the problem by only restoring the PLLA/PLLB registers when they were != 0. PS: please CC me, I'm not on the list.