linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* common clock framework
@ 2012-05-04  2:02 Chao Xie
  2012-05-04  8:21 ` Sascha Hauer
  0 siblings, 1 reply; 17+ messages in thread
From: Chao Xie @ 2012-05-04  2:02 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,
The common clock driver in drivers/clk/ has been integrated into mainline. In fact, I still have some questions to the driver.
1. Why need big lock: enable_lock and prepare_lock?
   Using these locks means that the clock enable and prepare operation cannot re-entered.
2. How to handle the depended clocks?
   For example clock1 and clock2 both have multiple inputs, and they both depend on clock3. It means that before enable clock1 or clock2, clock3 should be enabled, and if clock1 and clock2 are both off, clock2 need to be off too to save power. Clock3 is not the parent of clock1 and clock2, because the clock3 is not one of inputs of clock1 and clock2.
   If we do not handle it in clock framework, we have to let device driver to know it. It means that the device driver need to handle clock dependency. It will make the device driver to be complicated especially it is shared by different SOCs.
3. how to handle voltage changes in clock framework?
   When some clock's rate is changed, the voltage for the component that using the clock may need changed too. So where to add the voltage change sequence?
   

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <AAD1C6EB06EE3649B35B7E026785068D1A749F0DB6@SC-VEXCH2.marvell.com>]

end of thread, other threads:[~2012-06-14 13:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04  2:02 common clock framework Chao Xie
2012-05-04  8:21 ` Sascha Hauer
2012-05-04  8:45   ` Chao Xie
2012-05-04  9:15     ` Russell King - ARM Linux
2012-05-04 10:20     ` Sascha Hauer
2012-05-04 23:08   ` Turquette, Mike
2012-05-05  8:28     ` Sascha Hauer
2012-05-05 17:44       ` Turquette, Mike
2012-05-08  9:01         ` Mark Brown
2012-05-08 17:29           ` Turquette, Mike
     [not found]     ` <CAG9bXv=T7v_MBUOmCsp4n0SNmYY_DOEkhQXAp0rTGpdi6KkXNA@mail.gmail.com>
2012-05-06 23:49       ` Mike Turquette
2012-05-07  3:49         ` Raul Xiong
     [not found]         ` <AAD1C6EB06EE3649B35B7E026785068D1A74B2C256@SC-VEXCH2.marvell.com>
     [not found]           ` <A63A0DC671D719488CD1A6CD8BDC16CF1A0F044EB4@SC-VEXCH4.marvell.com>
     [not found]             ` <53612FE6B944314AAADB181E45A45B6413D3FF9F37@sc-vexch3.marvell.com>
2012-05-18  8:41               ` Chao Xie
2012-05-22 18:57                 ` Mike Turquette
2012-05-22 19:11                 ` Mike Turquette
2012-06-14 13:09                   ` Lei Wen
     [not found] <AAD1C6EB06EE3649B35B7E026785068D1A749F0DB6@SC-VEXCH2.marvell.com>
     [not found] ` <CAJOA=zPAy3AV6Dg9sE+fro1ZCmbxeCH8aeR5-YqffZphRkUQMQ@mail.gmail.com>
     [not found]   ` <AAD1C6EB06EE3649B35B7E026785068D1A749F10CC@SC-VEXCH2.marvell.com>
2012-04-25  4:40     ` Turquette, Mike

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