lkml.org 
[lkml]   [2011]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/2] Add a common struct clk
Date
Hi Sascha,

> The i.MX clk implementation disables the old parent if clk is enabled
> and enables the new parent if clk is enabled (modulo bugs). Shouldn't
> we do this here aswell?

Sounds reasonable, yes.

> I thought about returning -EBUSY if clk_set_parent is called for an
> enabled clk, but this way we could never reparent the cpu clock which I
> think is done in the Freescale BSP for power saving.

I think that the possibility for changing the parent really depends on the
implementation; in some cases we may want to disallow it, in others it might
be fine.

Related: do we really need globally-accessible clk_{get,set}_parent in the clk
API? For cases where we need to set the parent, we probably need details about
the platform clock configuration (eg, which clocks are possible parents). In
this case, we could just call into the clock driver directly.

Cheers,


Jeremy


\
 
 \ /
  Last update: 2011-01-11 11:29    [W:0.164 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site