Thread (31 messages) 31 messages, 6 authors, 2011-04-05

Re: [PATCHv2 1/9] at91: provide macb clks with "pclk" and "hclk" name

From: Russell King - ARM Linux <hidden>
Date: 2011-03-17 10:00:10
Also in: linux-arm-kernel

On Thu, Mar 17, 2011 at 11:22:37AM +0200, Andrew Victor wrote:
hi Russell,
quoted
quoted
There is no reference to a "pclk" or "hclk" in the AT91 architecture.
So to avoid possible confusion, maybe create two "fake" clocks both
parented to "macb_clk", and add a comment they're only for
compatibility with the AVR32.
It doesn't matter what's in the documentation.

What matters more than conforming to documentation is keeping the drivers
in a clean and maintainable state without throwing lots of ifdefs into
them.
I'm not saying the drivers need ifdefs, they should request both
"pclk" and "hclk" as suggested.

What I was suggesting is the platform clock setup on AT91 as:
    macb_clk
        |
        +-- hclk
        +-- pclk

rather than:
    pclk
        |
        +-- hclk
And what I've been saying all along is to make pclk a _dummy_ clock on
the platform it doesn't exist for, rather than making it related in some
way to another clock given to the peripheral.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help