All of lore.kernel.org
 help / color / mirror / Atom feed
* [Query] Common Clock Framework: How to handle clks enabled by default
@ 2012-04-17  6:21 Viresh Kumar
  2012-04-17  7:13 ` Shawn Guo
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2012-04-17  6:21 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

How are we handling clocks which are enabled by bootloaders and are
required to be enabled, like, pll, cpu, ahb?

Following is example clk hierarchy:
osc(root)->pll->cpu->ahb->dma

Issue1: Now, when we do clk_enable() for dma, all these already enabled clocks
are re-enabled.
Issue2: On clk_disable() all are disabled and system hangs :(

There is one option CLK_IGNORE_UNUSED, which is used only for disabling
unused clocks. So that is not helpful here.

One way i could think of is not to give clk_gate support for these clocks,
so that they can never be disabled. Is this the preferred way?

I can't guarantee, but these clocks might be required to be disabled
for standby/sleep cases.

-- 
viresh

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

end of thread, other threads:[~2012-04-17  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17  6:21 [Query] Common Clock Framework: How to handle clks enabled by default Viresh Kumar
2012-04-17  7:13 ` Shawn Guo
2012-04-17  7:25   ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.