linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] AT91 slow-clock suspend: don't wait when turning PLLs off
@ 2010-03-03 21:33 Anders Larsen
  2010-04-06 21:27 ` Andrew Victor
  0 siblings, 1 reply; 4+ messages in thread
From: Anders Larsen @ 2010-03-03 21:33 UTC (permalink / raw)
  To: linux-arm-kernel

From: Julien Langer <julien.langer@gmail.com>

AT91: when turning off the PLLs during suspend, don't wait for the lock flag
to be set. Previously the code would always run into the loop limitation
of 1000 iterations because the flag is never set when turning the PLLs off.

Signed-off-by: Julien Langer <julien.langer@gmail.com>
Signed-off-by: Anders Larsen <al@alarsen.net>
Cc: Andrew Victor <avictor.za@gmail.com>
Cc: Russell King <linux@arm.linux.org.uk>
---
 arch/arm/mach-at91/pm_slowclock.S |    4 ----
 1 file changed, 4 deletions(-)

Index: b/arch/arm/mach-at91/pm_slowclock.S
===================================================================
--- a/arch/arm/mach-at91/pm_slowclock.S
+++ b/arch/arm/mach-at91/pm_slowclock.S
@@ -175,8 +175,6 @@ ENTRY(at91_slow_clock)
 	orr	r3, r3, #(1 << 29)		/* bit 29 always set */
 	str	r3, [r1, #(AT91_CKGR_PLLAR - AT91_PMC)]
 
-	wait_pllalock
-
 	/* Save PLLB setting and disable it */
 	ldr	r3, [r1, #(AT91_CKGR_PLLBR - AT91_PMC)]
 	str	r3, .saved_pllbr
@@ -184,8 +182,6 @@ ENTRY(at91_slow_clock)
 	mov	r3, #AT91_PMC_PLLCOUNT
 	str	r3, [r1, #(AT91_CKGR_PLLBR - AT91_PMC)]
 
-	wait_pllblock
-
 	/* Turn off the main oscillator */
 	ldr	r3, [r1, #(AT91_CKGR_MOR - AT91_PMC)]
 	bic	r3, r3, #AT91_PMC_MOSCEN

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] AT91 slow-clock suspend: don't wait when turning PLLs off
  2010-03-03 21:33 [PATCH 1/2] AT91 slow-clock suspend: don't wait when turning PLLs off Anders Larsen
@ 2010-04-06 21:27 ` Andrew Victor
  2010-04-12 19:10   ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Victor @ 2010-04-06 21:27 UTC (permalink / raw)
  To: linux-arm-kernel

hi Anders,

> From: Julien Langer <julien.langer@gmail.com>
>
> AT91: when turning off the PLLs during suspend, don't wait for the lock flag
> to be set. Previously the code would always run into the loop limitation
> of 1000 iterations because the flag is never set when turning the PLLs off.
>
> Signed-off-by: Julien Langer <julien.langer@gmail.com>
> Signed-off-by: Anders Larsen <al@alarsen.net>
> Cc: Andrew Victor <avictor.za@gmail.com>
> Cc: Russell King <linux@arm.linux.org.uk>

During suspend we set the MULA and MULB bits to 0 to disable the
PLL's.  When disabled, the PLLs will never "lock".

   Acked-by: Andrew Victor <linux@maxim.org.za>


Russell:  This is patch 5975/1 in the patch-system.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] AT91 slow-clock suspend: don't wait when turning PLLs off
  2010-04-06 21:27 ` Andrew Victor
@ 2010-04-12 19:10   ` Russell King - ARM Linux
  2010-04-13  7:22     ` Andrew Victor
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2010-04-12 19:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Apr 06, 2010 at 11:27:55PM +0200, Andrew Victor wrote:
> hi Anders,
> 
> > From: Julien Langer <julien.langer@gmail.com>
> >
> > AT91: when turning off the PLLs during suspend, don't wait for the lock flag
> > to be set. Previously the code would always run into the loop limitation
> > of 1000 iterations because the flag is never set when turning the PLLs off.
> >
> > Signed-off-by: Julien Langer <julien.langer@gmail.com>
> > Signed-off-by: Anders Larsen <al@alarsen.net>
> > Cc: Andrew Victor <avictor.za@gmail.com>
> > Cc: Russell King <linux@arm.linux.org.uk>
> 
> During suspend we set the MULA and MULB bits to 0 to disable the
> PLL's.  When disabled, the PLLs will never "lock".
> 
>    Acked-by: Andrew Victor <linux@maxim.org.za>
> 
> 
> Russell:  This is patch 5975/1 in the patch-system.

Thanks; I see your ack has been added to that patch.  Should I assume that
this is for -rc rather than -devel?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] AT91 slow-clock suspend: don't wait when turning PLLs off
  2010-04-12 19:10   ` Russell King - ARM Linux
@ 2010-04-13  7:22     ` Andrew Victor
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Victor @ 2010-04-13  7:22 UTC (permalink / raw)
  To: linux-arm-kernel

hi Russell,

>> > AT91: when turning off the PLLs during suspend, don't wait for the lock flag
>> > to be set. Previously the code would always run into the loop limitation
>> > of 1000 iterations because the flag is never set when turning the PLLs off.
>> >
>> > Signed-off-by: Julien Langer <julien.langer@gmail.com>
>> > Signed-off-by: Anders Larsen <al@alarsen.net>
>> > Cc: Andrew Victor <avictor.za@gmail.com>
>> > Cc: Russell King <linux@arm.linux.org.uk>
>> ? ?Acked-by: Andrew Victor <linux@maxim.org.za>
>>
>>
> Thanks; I see your ack has been added to that patch. ?Should I assume that
> this is for -rc rather than -devel?

If it can still be merged for -rc, that would be great.
Otherwise the -devel branch is ok.


Regards,
  Andrew Victor

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-13  7:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-03 21:33 [PATCH 1/2] AT91 slow-clock suspend: don't wait when turning PLLs off Anders Larsen
2010-04-06 21:27 ` Andrew Victor
2010-04-12 19:10   ` Russell King - ARM Linux
2010-04-13  7:22     ` Andrew Victor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).