From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] clk: Add composite clock type
Date: Thu, 10 Jan 2013 13:06:16 -0800 [thread overview]
Message-ID: <50EF2D48.2080004@codeaurora.org> (raw)
In-Reply-To: <50E794D0.7040907@nvidia.com>
On 01/04/13 18:49, Prashant Gaikwad wrote:
> On Saturday 05 January 2013 03:48 AM, Stephen Boyd wrote:
>> On 01/03/13 21:51, Prashant Gaikwad wrote:
>>> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
>>> index f0b269a..baf7608 100644
>>> --- a/drivers/clk/Makefile
>>> +++ b/drivers/clk/Makefile
>>> @@ -2,7 +2,8 @@
>>> obj-$(CONFIG_HAVE_CLK) += clk-devres.o
>>> obj-$(CONFIG_CLKDEV_LOOKUP) += clkdev.o
>>> obj-$(CONFIG_COMMON_CLK) += clk.o clk-fixed-rate.o clk-gate.o \
>>> - clk-mux.o clk-divider.o clk-fixed-factor.o
>>> + clk-mux.o clk-divider.o clk-fixed-factor.o \
>>> + clk-composite.o
>> This list is getting a little out of hand. Should we sort it
>> alphabetically and put each file on one line?
>
> Do you want me to do it in this patch?
>
>
No.
>>> +static u8 clk_composite_get_parent(struct clk_hw *hw)
>>> +{
>>> + struct clk_composite *composite = to_clk_composite(hw);
>>> + const struct clk_ops *mux_ops = composite->mux_ops;
>>> + struct clk_hw *mux_hw = composite->mux_hw;
>>> +
>>> + mux_hw->clk = hw->clk;
>> Looks like this is already done down in the register function. Why are
>> we doing it again here and in each op?
>
> Some ops gets called during clk_init which is before clk_register
> returns.
>
>
Hmm. Ok.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
next prev parent reply other threads:[~2013-01-10 21:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 5:51 [PATCH 1/2] clk: Add composite clock type Prashant Gaikwad
2013-01-04 5:51 ` [PATCH 2/2] clk: tegra30: Convert clk out to composite clk Prashant Gaikwad
2013-01-04 16:25 ` Stephen Warren
2013-01-05 2:53 ` Prashant Gaikwad
2013-01-04 22:18 ` [PATCH 1/2] clk: Add composite clock type Stephen Boyd
2013-01-05 2:49 ` Prashant Gaikwad
2013-01-10 21:06 ` Stephen Boyd [this message]
2013-01-18 21:09 ` Mike Turquette
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=50EF2D48.2080004@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).