linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* clock framework: Don't disable a clock already enabled by boot loader?
@ 2013-05-24 12:44 Dirk Behme
  2013-05-24 23:00 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Dirk Behme @ 2013-05-24 12:44 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

we register a clock using clk_register_clkdev() etc already enabled by a 
boot loader. We are doing only the clk_register_clkdev(), but no 
clock_enable() etc on this clock.

With this, enable_count for this clock is zero, while in fact it's 
already on. I.e. the kernel doesn't know that it is on.

This results in

late_initcall(clk_disable_unused())

disabling this clock because the kernel thinks it's unused.

Is this the intended behavior? Is there a way to let the kernel know 
"the clock is enabled already, set enable_count != 0"? Or is the only 
way to do this correctly calling clock_enable() on an already enabled clock?

Many thanks and best regards

Dirk

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

end of thread, other threads:[~2013-05-25 11:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24 12:44 clock framework: Don't disable a clock already enabled by boot loader? Dirk Behme
2013-05-24 23:00 ` Sascha Hauer
2013-05-25  5:59   ` Dirk Behme
2013-05-25  6:54     ` Shawn Guo
2013-05-25  7:16       ` Dirk Behme
2013-05-25 11:17         ` Shawn Guo

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).