From: Sebastian Hesselbarh <sebastian.hesselbarth@googlemail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: linux-kernel@vger.kernel.org, mturquette@ti.com
Subject: Re: [RFC] Common clock framework for external clock generators
Date: Sun, 13 May 2012 19:11:09 +0200 [thread overview]
Message-ID: <4FAFEB2D.5010009@googlemail.com> (raw)
In-Reply-To: <20120513164304.GB6381@opensource.wolfsonmicro.com>
On 05/13/2012 06:43 PM, Mark Brown wrote:
> One of the patches I've been sending adds a dummy clk_unregister() for
> the sake of making the drivers look nicer - practically speaking it's
> not likely to be terribly important as these things don't get unloaded
> terribly often. It looks like that patch didn't get applied either.
Well, of course I don't plan to unload the driver ever but basically it
is possible..
One more thing I thought about: The platform I currently use needs to
pass the external clocks to the platform devices that can use them
later. IMHO the correct way of creating clocks would be:
- register i2c clock driver and let it register its clocks with names
like e.g. si5351, clkout0. The clock driver itself cannot and should
not know who uses it later on.
- let drivers look for e.g. kirkwood-i2s.1, extclk because the i2s
driver cannot know where the external clock comes from.
- have a board-specific function that configures clock hierarchy and
create suitable clk_aliases e.g.
si5351,clkout0 = kirkwood-i2s.1,extclk.
Currently I added a callback function pointer to the platform data
passed to the i2c clock driver that is called at the end of clock
driver probe. I doubt it will be accepted that way but can't think
of any other way..
Sebastian
next prev parent reply other threads:[~2012-05-13 17:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 1:11 [RFC] Common clock framework for external clock generators Sebastian Hesselbarh
2012-05-13 12:29 ` Mark Brown
2012-05-13 16:30 ` Sebastian Hesselbarh
2012-05-13 16:43 ` Mark Brown
2012-05-13 17:11 ` Sebastian Hesselbarh [this message]
2012-05-13 17:16 ` Mark Brown
2012-05-14 18:08 ` Turquette, Mike
2012-05-14 18:12 ` Mark Brown
2012-10-11 8:34 ` Daniel Mack
2012-10-11 16:00 ` Sebastian Hesselbarth
2012-10-12 18:17 ` Daniel Mack
2012-10-14 10:59 ` Sebastian Hesselbarth
2012-10-14 11:13 ` Daniel Mack
2012-10-14 16:16 ` Sebastian Hesselbarth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FAFEB2D.5010009@googlemail.com \
--to=sebastian.hesselbarth@googlemail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).