[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110711114127.GI5092@opensource.wolfsonmicro.com>
Date: Mon, 11 Jul 2011 20:41:30 +0900
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Russell King - ARM Linux <linux@....linux.org.uk>
Cc: Jeremy Kerr <jeremy.kerr@...onical.com>,
Grant Likely <grant@...retlab.ca>, linux-sh@...r.kernel.org,
patches@...nsource.wolfsonmicro.com, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 5/6] clk: Support multiple instances of the same clock
provider
On Mon, Jul 11, 2011 at 12:11:53PM +0100, Russell King - ARM Linux wrote:
> On Mon, Jul 11, 2011 at 07:53:45PM +0900, Mark Brown wrote:
> > We do need some way to have some idea which clocks we're talking about,
> > and for off-SoC stuff passing around struct clk pointers is rather
> > painful. At some point some bit of code is going to have to get hold of
> > the actual struct clk and then map it onto the devices using it.
> As I haven't seen any of this "passing around struct clk pointers" crap
> recently, I can only guess at what you're saying. I thought all that
> had been solved with _proper_ use of clkdev.
The problem is getting the data into clkdev in the first place for the
off-SoC devices.
> clkdev can provide you with a struct clk for _any_ device in the system
> where its name is known at build time.
Right, on the consumer side it's all sorted and works really well. The
trick is on the provider side where you need to have the clock available
to be able to add the mappings for it.
Perhaps I'm just missing something about how this should all work -
actually, the regulator solution probably works fine here. Pass an
array of mappings into either the driver or the clock subsystem and have
them add the mappings when the provider registers. Whichever way around
should just be some hooks in the new subsystem.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists