From nobody Wed Oct 1 21:23:23 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 794C3199939; Tue, 30 Sep 2025 14:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759243828; cv=none; b=BDpMqBk+BXF9mV1sVzuzemMicg0lCGlO1PBmTlEPXHCTKSGEAcJxmXWOzDh8RKxdUhFHEoGb0uhI4b/KhbqVjE98vyk54fHSwNhz1xantj3BZFHw6dy3Hm52VmjgOmSzrXqewWH90PO/zpgUYHV/Ky5lEeSQWB9bHbnWncju6bI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759243828; c=relaxed/simple; bh=bGRvLmBfuagqKuhVTHE+dzZ/1ZOkju5doGxlOLCStME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uElRfbTFznGRitTUMfwKLinpd+/qSf9ZMX40MIU5iNybgZaqi+hPpGl/O77Q6AANvFEL2q+zqPDerRIi3JlpCHKerAiRXknn9+878QFlmkAUzQDIwHOVFSvg/qzNBNhgkgg+c/3EwcKEF42ba+B5fNjbu+MgKl+hktXO7p845wI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34EB4C113D0; Tue, 30 Sep 2025 14:50:26 +0000 (UTC) From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd , Rahul Pathak , Andy Shevchenko , Anup Patel , Paul Walmsley Cc: linux-clk@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] clk: COMMON_CLK_RPMI should depend on RISCV Date: Tue, 30 Sep 2025 16:50:23 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 s= ervice group") Signed-off-by: Geert Uytterhoeven --- 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 =20 config COMMON_CLK_RPMI tristate "Clock driver based on RISC-V RPMI" + depends on RISCV || COMPILE_TEST depends on MAILBOX default RISCV help --=20 2.43.0