From: Francesco VIRLINZI <francesco.virlinzi@st.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: clkfwk: Changed the init function
Date: Mon, 16 Mar 2009 12:39:16 +0000 [thread overview]
Message-ID: <49BE4874.5080206@st.com> (raw)
In-Reply-To: <49BA1505.7000500@st.com>
Hi Paul
Paul Mundt ha scritto:
> On Fri, Mar 13, 2009 at 09:10:45AM +0100, Francesco VIRLINZI wrote:
>
>> This patch changes the init field in the clk_ops structure.
>> Moreover it changes how the init function is used.
>> Now it's called during registration and if something was wrong the clock
>> isn't registered.
>>
>>
> Ok, I'll bite. Why?
>
Than:
I think the clk_ops.init function has (mandatory) to return a value
to notify to the clk framework if the clock initialization was ok or not.
Moreover in my point of view if a clock has an clk_ops.init function
than the function
has to be called during the clk_register because we must know as soon
as possible
if a clock is working or not... It isn't really nice discover a
not-working clock
after a call to clk_enable().... while the clk is perfectly registered...
i.e.: I'm thinking for example on a clock on i2c bus... ( I assume a clkfwk
should be able to manage any kind of clock). During the clk_register
(with the clk_ops.init) I can check if the clock can be really used
or not instead of discover (for example) with the clk_enable()
that the i2c-bus sees no device...
Let me know if I clarified my view.
Regards
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
>
>
next prev parent reply other threads:[~2009-03-16 12:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 8:10 [PATCH] sh: clkfwk: Changed the init function Francesco VIRLINZI
2009-03-13 8:34 ` Francesco VIRLINZI
2009-03-13 16:31 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-16 5:24 ` Francesco VIRLINZI
2009-03-16 11:13 ` Paul Mundt
2009-03-16 12:39 ` Francesco VIRLINZI [this message]
2009-03-16 12:45 ` Paul Mundt
2009-03-19 8:24 ` Francesco VIRLINZI
2009-04-07 8:25 ` Francesco VIRLINZI
2009-04-07 20:27 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-14 3:40 ` Paul Mundt
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=49BE4874.5080206@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 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.