Re: [PATCH 4/7] spi: pl022: attempt to get sspclk by name

Mark Brown
2014-02-12T16:22:44Z

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

On Wed, Feb 12, 2014 at 04:12:06PM +0000, Mark Rutland wrote:

> I thought one of the issues before dt was that clocks were in a global
> namespace. Mark's reply implies that's not necessarily the case, so I'll
> take a tour through clkdev to educate myself.

There's both a global namespace and a device local namespace, the most
exact match is used - see the comment on clk_find(). Remember that in
the past clock implementations didn't have to use clkdev at all so the
implementations varied a lot (which is half the problem with drivers
now). Lots of implementations just used global clock names and didn't
pay any attention to dev.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]