From: "NG, ADRIAN HO YIN" <adrian.ho.yin.ng@altera.com>
To: Dinh Nguyen <dinguyen@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] clk: socfpga: agilex: register the SP timer clocks early
Date: Tue, 13 Oct 2026 14:22:30 +0800 [thread overview]
Message-ID: <6076b13f-d068-44f5-8791-cf3dbcb2cae7@altera.com> (raw)
In-Reply-To: <5b7d5543-5608-40fa-be5d-92600c2c9e70@kernel.org>
On 10/13/2026 5:53 AM, Dinh Nguyen wrote:
>
>
> On 10/2/26 05:22, Adrian Ng Ho Yin wrote:
>> The DW APB timers are probed through TIMER_OF_DECLARE() from time_init()
>> and cannot defer, but the clock manager is a platform driver registered
>> at core_initcall(). The timer's clk_get() therefore fails and the timer
>> is never brought up.
>>
>> Register only l4_sp_clk and its parents (boot_clk, main_pll, periph_pll,
>> main_pll_c1, peri_pll_c1 and noc_free_clk) from of_clk_init() using
>> CLK_OF_DECLARE_DRIVER(), with every other clock left as -EPROBE_DEFER.
>> The remaining clocks are still registered when the platform driver
>> probes, which reuses the early provider.
>>
>> Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
>> ---
>> drivers/clk/socfpga/clk-agilex.c | 222 +++++++++++++++++++++++--------
>> 1 file changed, 169 insertions(+), 53 deletions(-)
>>
>> diff --git a/drivers/clk/socfpga/clk-agilex.c
>> b/drivers/clk/socfpga/clk-agilex.c
>> index 2bdea1997b5e..91a80b7b1886 100644
>> --- a/drivers/clk/socfpga/clk-agilex.c
>> +++ b/drivers/clk/socfpga/clk-agilex.c
>> @@ -4,7 +4,9 @@
>> */
>> #include <linux/slab.h>
>> #include <linux/clk-provider.h>
>> +#include <linux/io.h>
>
> WHy do you need this include? Comment applies to all 3 patches.
> The rest looks good to me.
Hi Dinh,
Thanks for the review.
The include line was left over from the v1 submission. I'll drop it in V3.
Thank You
Adrian
>
> Dinh
next prev parent reply other threads:[~2026-10-13 6:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 10:22 [PATCH v2 0/3] clk: socfpga: " Adrian Ng Ho Yin
2026-10-02 10:22 ` [PATCH v2 1/3] clk: socfpga: agilex: " Adrian Ng Ho Yin
2026-10-12 21:53 ` Dinh Nguyen
2026-10-13 6:22 ` NG, ADRIAN HO YIN [this message]
2026-10-02 10:22 ` [PATCH v2 2/3] clk: socfpga: agilex5: " Adrian Ng Ho Yin
2026-10-02 10:22 ` [PATCH v2 3/3] clk: socfpga: stratix10: " Adrian Ng Ho Yin
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=6076b13f-d068-44f5-8791-cf3dbcb2cae7@altera.com \
--to=adrian.ho.yin.ng@altera.com \
--cc=bmasney+clk@redhat.com \
--cc=dinguyen@kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sboyd@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
all inboxes | Powered by JetHome®