public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Francesco VIRLINZI <francesco.virlinzi@st.com>
To: linux-sh@vger.kernel.org
Subject: Re: [Proposal][PATCH] sh: clkfw: Moved the .init callback in the
Date: Mon, 11 May 2009 13:23:06 +0000	[thread overview]
Message-ID: <4A0826BA.7020100@st.com> (raw)
In-Reply-To: <4A07EAFC.2080906@st.com>

Hi Magnus
> Hi Francesco,
>
> I had a look at your patch. The idea behind the patch is fine with me
> - still untested - but I'd be happy to test the next version if you
> can improve it a bit. 
No problems I can do that... but.

Paul: I remember you had some issue on this design.

Do you agree now? Do you think the v3 is commit-able?

Let me know.

Regards
 Francesco

> Here's some feedback:
>
> Changing init() to return an int is ok with me. Not sure what Paul
> thinks about this. Anyway, to do so you need to fix your patch so all
> init() callbacks are changed. Applying this patch as-is will break
> many things.
>
> No need for the __clk_init() function any more. And please use the
> return value from the init() callback.
>
> You probably want to call init() from clk_register() after adding the
> clock to the list. Also, return the value from the init() callback, no
> need to always return -EPERM.
>
> And if possible, please send the patch inline. That makes reviewing much easier.
>
> Cheers,
>
> / magnus - waiting for a V3
>
> On Mon, May 11, 2009 at 6:26 PM, Francesco VIRLINZI
> <francesco.virlinzi@st.com> wrote:
>   
>> Sorry... THe attached was broken.
>> Here the right patch,
>> Ciao
>> Francesco
>> Francesco VIRLINZI ha scritto:
>>     
>>> Hi Magnus
>>> Here there is the patch to move the .init callback during the clock
>>> registration.
>>> Currently the __clk_init returns always zero...
>>> in the next step if the __clk_init fails the clock registration will be
>>> rejected.
>>>
>>> Let me know.
>>> Ciao
>>> Francesco
>>>       
>>     
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>   


      parent reply	other threads:[~2009-05-11 13:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11  9:08 [Proposal][PATCH] sh: clkfw: Moved the .init callback in the clk_register Francesco VIRLINZI
2009-05-11  9:26 ` [Proposal][PATCH] sh: clkfw: Moved the .init callback in the Francesco VIRLINZI
2009-05-11 13:13 ` Magnus Damm
2009-05-11 13:23 ` Francesco VIRLINZI [this message]

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=4A0826BA.7020100@st.com \
    --to=francesco.virlinzi@st.com \
    --cc=linux-sh@vger.kernel.org \
    /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