From: Andre Przywara <andre.przywara@arm.com>
To: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Mike Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Emilio Lopez <emilio@elopez.com.ar>,
heiko@sntech.de, Chen-Yu Tsai <wens@csie.org>,
linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/5] clk: sunxi: convert current clocks registration to CLK_OF_DECLARE
Date: Tue, 2 Feb 2016 17:04:02 +0000 [thread overview]
Message-ID: <56B0E182.9000207@arm.com> (raw)
In-Reply-To: <20160202170037.GZ4652@lukather>
Hi,
On 02/02/16 17:00, Maxime Ripard wrote:
> Hi,
>
> On Tue, Feb 02, 2016 at 02:16:54PM +0000, Andre Przywara wrote:
>> Hi Maxime,
>>
>> On 02/02/16 08:47, Maxime Ripard wrote:
>>> The current clock registration and protection code has a few drawbacks, the
>>> two main ones being that we create a lot of orphans clock in the
>>> registration phase, which will be troublesome when we will start being less
>>> relaxed about them.
>>>
>>> The protection code also relies on clkdev, which we don't really use but
>>> for this particular case.
>>>
>>> Fix both at the same time by moving everyone to the CLK_OF_DECLARE that
>>> will probe our clock tree in the right and thus avoid orphans, and by
>>> protecting directly the clock returned by our registration function.
>>
>> I very much appreciate this cleanup and like the idea. Any chance we can
>> have this rather quickly, so that I can rebase the A64 support series on it?
>
> I actually count on that :)
Great!
> I wasn't really happy about your allwinner,sunxi compatible,
Me neither, honestly, but I didn't dare to touch clk-sunxi.c even more ;-)
> so I just
> gave you an easier way out ;)
Appreciated!
>
>>> +static void __init sun8i_ahb2_clk_setup(struct device_node *node)
>>> +{
>>> + sunxi_mux_clk_setup(node, &sun8i_h3_ahb2_mux_data);
>>> +}
>>> +CLK_OF_DECLARE(sun8i_ahb2, "allwinner,sun8i-a31-ahb2-clk",
>>> + sun8i_ahb2_clk_setup);
>>
>> I don't find this clock in my tree (which is mripard/sunxi/for-next).
>> Instead I only have "allwinner,sun8i-h3-ahb2-clk", as mentioned below.
>> But as you remove this clock below from the old code and instead
>> instantiate this new clock here, this looks somehow wrong to me. Can you
>> confirm this or am I utterly confused?
>
> Damn, you're right, it's just a silly copy-paste issue, I'll fix it.
I am sure you left it in to see if somebody actually checks it ;-)
Merci!
Andre
>> Apart from that I checked each and every clock mentioned in this patch
>> and can confirm that the transformation is correct. So if you fix this,
>> I can send a Reviewed-by.
>
> Thanks,
> Maxime
>
WARNING: multiple messages have this Message-ID (diff)
From: andre.przywara@arm.com (Andre Przywara)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] clk: sunxi: convert current clocks registration to CLK_OF_DECLARE
Date: Tue, 2 Feb 2016 17:04:02 +0000 [thread overview]
Message-ID: <56B0E182.9000207@arm.com> (raw)
In-Reply-To: <20160202170037.GZ4652@lukather>
Hi,
On 02/02/16 17:00, Maxime Ripard wrote:
> Hi,
>
> On Tue, Feb 02, 2016 at 02:16:54PM +0000, Andre Przywara wrote:
>> Hi Maxime,
>>
>> On 02/02/16 08:47, Maxime Ripard wrote:
>>> The current clock registration and protection code has a few drawbacks, the
>>> two main ones being that we create a lot of orphans clock in the
>>> registration phase, which will be troublesome when we will start being less
>>> relaxed about them.
>>>
>>> The protection code also relies on clkdev, which we don't really use but
>>> for this particular case.
>>>
>>> Fix both at the same time by moving everyone to the CLK_OF_DECLARE that
>>> will probe our clock tree in the right and thus avoid orphans, and by
>>> protecting directly the clock returned by our registration function.
>>
>> I very much appreciate this cleanup and like the idea. Any chance we can
>> have this rather quickly, so that I can rebase the A64 support series on it?
>
> I actually count on that :)
Great!
> I wasn't really happy about your allwinner,sunxi compatible,
Me neither, honestly, but I didn't dare to touch clk-sunxi.c even more ;-)
> so I just
> gave you an easier way out ;)
Appreciated!
>
>>> +static void __init sun8i_ahb2_clk_setup(struct device_node *node)
>>> +{
>>> + sunxi_mux_clk_setup(node, &sun8i_h3_ahb2_mux_data);
>>> +}
>>> +CLK_OF_DECLARE(sun8i_ahb2, "allwinner,sun8i-a31-ahb2-clk",
>>> + sun8i_ahb2_clk_setup);
>>
>> I don't find this clock in my tree (which is mripard/sunxi/for-next).
>> Instead I only have "allwinner,sun8i-h3-ahb2-clk", as mentioned below.
>> But as you remove this clock below from the old code and instead
>> instantiate this new clock here, this looks somehow wrong to me. Can you
>> confirm this or am I utterly confused?
>
> Damn, you're right, it's just a silly copy-paste issue, I'll fix it.
I am sure you left it in to see if somebody actually checks it ;-)
Merci!
Andre
>> Apart from that I checked each and every clock mentioned in this patch
>> and can confirm that the transformation is correct. So if you fix this,
>> I can send a Reviewed-by.
>
> Thanks,
> Maxime
>
next prev parent reply other threads:[~2016-02-02 17:04 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 8:47 [PATCH 0/5] clk: sunxi: Rework the clocks code to deal with orphans Maxime Ripard
2016-02-02 8:47 ` Maxime Ripard
2016-02-02 8:47 ` [PATCH 1/5] clk: sunxi: Make clocks setup functions return their clock Maxime Ripard
2016-02-02 8:47 ` Maxime Ripard
2016-02-02 10:35 ` Chen-Yu Tsai
2016-02-02 11:32 ` Andre Przywara
2016-02-02 11:32 ` Andre Przywara
2016-02-02 13:27 ` Maxime Ripard
2016-02-02 13:27 ` Maxime Ripard
2016-02-04 12:07 ` Maxime Ripard
2016-02-04 12:07 ` Maxime Ripard
2016-02-02 8:47 ` [PATCH 2/5] clk: sunxi: Make clocks setup functions take const pointer Maxime Ripard
2016-02-02 8:47 ` Maxime Ripard
2016-02-02 10:38 ` Chen-Yu Tsai
2016-02-02 12:11 ` Andre Przywara
2016-02-02 12:11 ` Andre Przywara
2016-02-04 12:08 ` Maxime Ripard
2016-02-04 12:08 ` Maxime Ripard
2016-02-02 8:47 ` [PATCH 3/5] clk: sunxi: convert current clocks registration to CLK_OF_DECLARE Maxime Ripard
2016-02-02 8:47 ` Maxime Ripard
2016-02-02 14:16 ` Andre Przywara
2016-02-02 14:16 ` Andre Przywara
2016-02-02 17:00 ` Maxime Ripard
2016-02-02 17:00 ` Maxime Ripard
2016-02-02 17:04 ` Andre Przywara [this message]
2016-02-02 17:04 ` Andre Przywara
2016-02-04 12:13 ` Maxime Ripard
2016-02-04 12:13 ` Maxime Ripard
2016-02-02 8:47 ` [PATCH 4/5] clk: sunxi: Remove old probe and protection code Maxime Ripard
2016-02-02 8:47 ` Maxime Ripard
2016-02-04 12:15 ` Maxime Ripard
2016-02-04 12:15 ` Maxime Ripard
2016-02-02 8:47 ` [PATCH 5/5] clk: sunxi: Remove clk_register_clkdev calls Maxime Ripard
2016-02-02 8:47 ` Maxime Ripard
2016-02-02 10:26 ` Jean-Francois Moine
2016-02-02 10:26 ` Jean-Francois Moine
2016-02-03 19:29 ` Maxime Ripard
2016-02-03 19:29 ` Maxime Ripard
2016-02-04 12:17 ` Maxime Ripard
2016-02-04 12:17 ` Maxime Ripard
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=56B0E182.9000207@arm.com \
--to=andre.przywara@arm.com \
--cc=emilio@elopez.com.ar \
--cc=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.org \
--cc=wens@csie.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.