Thread (2 messages) flat view 2 messages, 2 authors, 2012-08-22

[PATCH 2/2] ARM: imx6q: replace clk_register_clkdev with clock DT lookup

From: Russell King - ARM Linux <hidden>
Date: 2012-08-22 08:32:23
Also in: linux-devicetree

On Tue, Aug 21, 2012 at 08:11:57AM -0500, Rob Herring wrote:
On 08/21/2012 07:27 AM, Russell King - ARM Linux wrote:
quoted
So now, you're not dealing with inventing a whole load of names for clocks
on a platform, instead what you're doing is describing _where_ the clock
comes from in the system for a particular device by device node and index
into it - just like we do for interrupts.
That is what we're doing. The names are optional for DT, but happen to
be required for struct clk now. If we don't put something in DT, then
the clock names will have to be something generic like ccm-1..ccm-185.
And that's what's wrong.  Clocks themselves should _not_ be required to
be named.

If you use purely "producer node + index" then you don't need to name a
whole bunch of clocks, and you don't need to have an array of clock names
in the DT file.  This also gets rid of the time consuming strcmp against
every clock, which has already been raised as a problem with the existing
clk_get().

And, like it or not, the way they're being describing them in the DT file
at the top of this sub-thread, the matching _is_ done only by producer
name, which is TOTALLY the wrong way to go about this (that's how folk
tried to use the connection ID in the clk API and IT DOESN'T WORK for
reusable drivers.)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help