From: Jerome Brunet <jbrunet@baylibre.com>
To: Changhuang Liang <changhuang.liang@starfivetech.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney@redhat.com>, Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Philipp Zabel <p.zabel@pengutronix.de>,
Emil Renner Berthing <kernel@esmil.dk>,
Chen Wang <unicorn_wang@outlook.com>,
Inochi Amaoto <inochiama@gmail.com>,
Alexey Charkov <alchark@gmail.com>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Keguang Zhang <keguang.zhang@gmail.com>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-riscv@lists.infradead.org"
<linux-riscv@lists.infradead.org>,
Hal Feng <hal.feng@starfivetech.com>
Subject: Re: [PATCH v5 2/8] clk: starfive: Add system-0 domain PLL clock driver
Date: Mon, 05 Oct 2026 11:20:54 +0200 [thread overview]
Message-ID: <1jh5j07bbd.fsf@starbuckisacylon.baylibre.com> (raw)
In-Reply-To: <ZQ4PR01MB120246C3208C10BDEFD32BCFF2882@ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn>
On Sat 03 Oct 2026 at 11:02, Changhuang Liang <changhuang.liang@starfivetech.com> wrote:
>> > +static const struct jhb100_pll_info jhb100_sys0_pll_info[] = {
>> > + JHB100_PLL(JHB100_SYS0PLL_PLL2_OUT, "pll2_out",
>> jhb100_pll2_presets,
>> > + ARRAY_SIZE(jhb100_pll2_presets), JHB100_PLL2_OFFSET, false),
>> > + _JHB100_PLL(JHB100_SYS0PLL_PLL3_OUT, "pll3_out",
>> jhb100_pll3_presets,
>> > + ARRAY_SIZE(jhb100_pll3_presets), JHB100_PLL3_OFFSET,
>> > + CLK_IS_CRITICAL, false),
>> > + _JHB100_PLL(JHB100_SYS0PLL_PLL4_OUT, "pll4_out", NULL, 0,
>> > + JHB100_PLL4_OFFSET, CLK_IGNORE_UNUSED, true),
>>
>> Please comment when adding CLK_IGNORE_UNUSED so people have an idea
>> why it is needed and how it can be removed
>
> OK, I understand that there is an intention to remove this flag. On our SoC, some clocks are
> typically not referenced by any driver, but we don't want them to be turned off. We currently
> use CLK_IGNORE_UNUSED to preserve their hardware-default enabled state. Perhaps in the
> next version we will replace it with CLK_IS_CRITICAL.
CLK_IGNORE_UNUSED and CLK_IS_CRITICAL do not express the same thing both
equally need to be commented so a few years from now, we are not left
wondering why this was added.
You do not have a driver for this clock today. The fact you still *need*
that clock show maybe you should have one and maybe someone, someday,
will fix this.
>
>>
next prev parent reply other threads:[~2026-10-05 9:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 9:56 [PATCH v5 0/8] Add StarFive JHB100 syscon modules Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 1/8] dt-bindings: soc: starfive: " Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 2/8] clk: starfive: Add system-0 domain PLL clock driver Changhuang Liang
2026-09-30 8:56 ` Jerome Brunet
2026-10-03 11:02 ` Changhuang Liang
2026-10-05 9:20 ` Jerome Brunet [this message]
2026-08-28 9:56 ` [PATCH v5 3/8] clk: starfive: Add peripheral-0 " Changhuang Liang
2026-09-30 9:45 ` Jerome Brunet
2026-10-03 11:29 ` Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 4/8] clk: starfive: Add Peripheral-1 " Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 5/8] reset: starfive: Introduce active_low Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 6/8] reset: starfive: Add syscon reset driver support Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 7/8] soc: starfive: Add socinfo driver for JHB100 SoC Changhuang Liang
2026-08-28 9:56 ` [PATCH v5 8/8] riscv: dts: starfive: jhb100: Add syscon nodes Changhuang Liang
2026-09-08 20:06 ` [PATCH v5 0/8] Add StarFive JHB100 syscon modules Conor Dooley
2026-09-09 1:06 ` Changhuang Liang
2026-10-02 20:29 ` Conor Dooley
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=1jh5j07bbd.fsf@starbuckisacylon.baylibre.com \
--to=jbrunet@baylibre.com \
--cc=alchark@gmail.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=bmasney@redhat.com \
--cc=changhuang.liang@starfivetech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hal.feng@starfivetech.com \
--cc=inochiama@gmail.com \
--cc=keguang.zhang@gmail.com \
--cc=kernel@esmil.dk \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=unicorn_wang@outlook.com \
/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®