Linux clock framework development
 help / color / mirror / Atom feed
* [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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-02 14:34 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