* [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV
@ 2025-09-30 14:50 Geert Uytterhoeven
2025-10-02 1:15 ` Paul Walmsley
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2025-09-30 14:50 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rahul Pathak, Andy Shevchenko,
Anup Patel, Paul Walmsley
Cc: linux-clk, linux-riscv, linux-kernel, Geert Uytterhoeven
The RISC-V platform management interface (RPMI) is only available on
RISC-V platforms. Hence add a dependency on RISCV, to prevent asking
the user about this driver when configuring a kernel for a different
architecture.
Fixes: 5ba9f520f41a33c9 ("clk: Add clock driver for the RISC-V RPMI clock service group")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
And perhaps the "default RISCV" should be dropped, too?
---
drivers/clk/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index b03fafb402b19153..5c17a22d59920f5e 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -510,6 +510,7 @@ config COMMON_CLK_LITEX
config COMMON_CLK_RPMI
tristate "Clock driver based on RISC-V RPMI"
+ depends on RISCV || COMPILE_TEST
depends on MAILBOX
default RISCV
help
--
2.43.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV
2025-09-30 14:50 [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV Geert Uytterhoeven
@ 2025-10-02 1:15 ` Paul Walmsley
2025-10-02 1:31 ` Paul Walmsley
2025-10-02 9:36 ` Conor Dooley
0 siblings, 2 replies; 5+ messages in thread
From: Paul Walmsley @ 2025-10-02 1:15 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, Stephen Boyd, Rahul Pathak, Andy Shevchenko,
Anup Patel, Paul Walmsley, linux-clk, linux-riscv, linux-kernel
On Tue, 30 Sep 2025, Geert Uytterhoeven wrote:
> The RISC-V platform management interface (RPMI) is only available on
> RISC-V platforms. Hence add a dependency on RISCV, to prevent asking
> the user about this driver when configuring a kernel for a different
> architecture.
>
> Fixes: 5ba9f520f41a33c9 ("clk: Add clock driver for the RISC-V RPMI clock service group")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks Geert for catching this.
This patch is against unmerged patches in -next. So I'll plan to add this
to the PR that I plan to send to Linus tomorrow -- unless any of the
drivers/clk maintainers would prefer that I not.
> And perhaps the "default RISCV" should be dropped, too?
Probably. I guess we should just add this to the arch/riscv defconfig
instead. Let's wait on this one for a few days to see if anyone has any
comments, and consider that change for v6.18-rc fixes.
thanks again,
- Paul
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV
2025-10-02 1:15 ` Paul Walmsley
@ 2025-10-02 1:31 ` Paul Walmsley
2025-10-02 9:36 ` Conor Dooley
1 sibling, 0 replies; 5+ messages in thread
From: Paul Walmsley @ 2025-10-02 1:31 UTC (permalink / raw)
To: Paul Walmsley
Cc: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Rahul Pathak,
Andy Shevchenko, Anup Patel, linux-clk, linux-riscv, linux-kernel
On Wed, 1 Oct 2025, Paul Walmsley wrote:
> On Tue, 30 Sep 2025, Geert Uytterhoeven wrote:
>
> > And perhaps the "default RISCV" should be dropped, too?
>
> Probably. I guess we should just add this to the arch/riscv defconfig
> instead. Let's wait on this one for a few days to see if anyone has any
> comments, and consider that change for v6.18-rc fixes.
Sorry, this one got garbled on the way out. I meant to say that we should
think about whether it makes sense to use a more fine-grained way to
enable this by default.
- Paul
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV
2025-10-02 1:15 ` Paul Walmsley
2025-10-02 1:31 ` Paul Walmsley
@ 2025-10-02 9:36 ` Conor Dooley
2025-10-02 14:34 ` Anup Patel
1 sibling, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2025-10-02 9:36 UTC (permalink / raw)
To: Paul Walmsley
Cc: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Rahul Pathak,
Andy Shevchenko, Anup Patel, linux-clk, linux-riscv, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1450 bytes --]
On Wed, Oct 01, 2025 at 07:15:56PM -0600, Paul Walmsley wrote:
> On Tue, 30 Sep 2025, Geert Uytterhoeven wrote:
>
> > The RISC-V platform management interface (RPMI) is only available on
> > RISC-V platforms. Hence add a dependency on RISCV, to prevent asking
> > the user about this driver when configuring a kernel for a different
> > architecture.
> >
> > Fixes: 5ba9f520f41a33c9 ("clk: Add clock driver for the RISC-V RPMI clock service group")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Thanks Geert for catching this.
>
> This patch is against unmerged patches in -next. So I'll plan to add this
> to the PR that I plan to send to Linus tomorrow -- unless any of the
> drivers/clk maintainers would prefer that I not.
>
> > And perhaps the "default RISCV" should be dropped, too?
>
> Probably. I guess we should just add this to the arch/riscv defconfig
> instead. Let's wait on this one for a few days to see if anyone has any
> comments, and consider that change for v6.18-rc fixes.
There's little point having "default RISCV" if it's only available on
RISCV in the first place, may as well just be "default y" and be
simpler.
My 2c is that putting it in defconfig is barely worth doing, unless there
are actual platforms that use it.
Does QEMU provide a useful test for it that exercises the various code
paths, that would make it worthwhile to have in defconfig Anup?
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV
2025-10-02 9:36 ` Conor Dooley
@ 2025-10-02 14:34 ` Anup Patel
0 siblings, 0 replies; 5+ messages in thread
From: Anup Patel @ 2025-10-02 14:34 UTC (permalink / raw)
To: Conor Dooley
Cc: Paul Walmsley, Geert Uytterhoeven, Michael Turquette,
Stephen Boyd, Rahul Pathak, Andy Shevchenko, linux-clk,
linux-riscv, linux-kernel
On Thu, Oct 2, 2025 at 3:06 PM Conor Dooley <conor@kernel.org> wrote:
>
> On Wed, Oct 01, 2025 at 07:15:56PM -0600, Paul Walmsley wrote:
> > On Tue, 30 Sep 2025, Geert Uytterhoeven wrote:
> >
> > > The RISC-V platform management interface (RPMI) is only available on
> > > RISC-V platforms. Hence add a dependency on RISCV, to prevent asking
> > > the user about this driver when configuring a kernel for a different
> > > architecture.
> > >
> > > Fixes: 5ba9f520f41a33c9 ("clk: Add clock driver for the RISC-V RPMI clock service group")
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > Thanks Geert for catching this.
> >
> > This patch is against unmerged patches in -next. So I'll plan to add this
> > to the PR that I plan to send to Linus tomorrow -- unless any of the
> > drivers/clk maintainers would prefer that I not.
> >
> > > And perhaps the "default RISCV" should be dropped, too?
> >
> > Probably. I guess we should just add this to the arch/riscv defconfig
> > instead. Let's wait on this one for a few days to see if anyone has any
> > comments, and consider that change for v6.18-rc fixes.
>
> There's little point having "default RISCV" if it's only available on
> RISCV in the first place, may as well just be "default y" and be
> simpler.
>
> My 2c is that putting it in defconfig is barely worth doing, unless there
> are actual platforms that use it.
> Does QEMU provide a useful test for it that exercises the various code
> paths, that would make it worthwhile to have in defconfig Anup?
Yes, QEMU RPMI support is in the pipeline. The OpenSBI
upstreaming was completed few months back and Linux patches
are going in this merge window (Linux-6.18)
We (Ventana) have already made the QEMU RPMI implementation
public which can be tried until QEMU RPMI upstreaming is completed.
(Refer, dev-upstream branch of https://github.com/ventanamicro/qemu.git)
NOTE: these details are mentioned in cover-letter as well.
(Refer, https://www.spinics.net/lists/linux-clk/msg118229.html)
Regards,
Anup
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-02 14:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30 14:50 [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV Geert Uytterhoeven
2025-10-02 1:15 ` Paul Walmsley
2025-10-02 1:31 ` Paul Walmsley
2025-10-02 9:36 ` Conor Dooley
2025-10-02 14:34 ` Anup Patel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox