All of lore.kernel.org
 help / color / mirror / Atom feed
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 18:30:55 +0200	[thread overview]
Message-ID: <4FAFE1BF.9050805@googlemail.com> (raw)
In-Reply-To: <20120513122946.GD706@sirena.org.uk>

On 05/13/2012 02:29 PM, Mark Brown wrote:
> Always CC maintainers on mails, things get lost on high volume lists.

Yeah, right after posting I thought of this but didn't want to bother
you again. I read a lot of kernel code since then and some things are
much more clearer to me now. Besides the driver is almost done now and
works as expected. Will have to clean up things and will post it as
a patch then.

> I'd suggest using regmap for the cache support (which helps with
> read/modify/write cycles) and because...

I will have a look at regmap before I post a new driver patch for
sure.

>> static const struct clk_ops si5351_xtal_ops = {
>> 	.enable = si5351_xtal_enable,
>> 	.disable = si5351_xtal_disable,
>
> These should be prepare() and unprepare() - enable() and disable() are
> called from atomic context so you can't do I2C I/O.

You are right. The kernel code states this correctly and I should have
read it more carefully.

>> static u8 si5351_clkout_get_parent(struct clk_hw *hw)
>> {
>> 	struct si5351_driver_data *sidata = si5351_clkout_get_data(hw);
>> 	return 0;
>> }
>
> If we need empty functions like this we should fix the framework.

Of course, this function is not empty at all but wasn't done at the
time I posted the RFC.

One question that remains from my original RFC is the missing
clk_unregister() as i2c can be removed there also should be an
function to unregister previously registered clocks?

Sebastian

  reply	other threads:[~2012-05-13 16:31 UTC|newest]

Thread overview: 17+ 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 [this message]
2012-05-13 16:43     ` Mark Brown
2012-05-13 17:11       ` Sebastian Hesselbarh
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 10:59         ` Sebastian Hesselbarth
2012-10-14 11:13         ` Daniel Mack
2012-10-14 11:13           ` Daniel Mack
2012-10-14 16:16           ` Sebastian Hesselbarth
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=4FAFE1BF.9050805@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.