[<prev] [next>] [day] [month] [year] [list]
Message-Id: <266065918e47e8965bb6a0ab486da070278788e4.1641996057.git.geert+renesas@glider.be>
Date: Wed, 12 Jan 2022 15:03:40 +0100
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Herbert Xu <herbert@...dor.apana.org.au>,
Sunil Goutham <sgoutham@...vell.com>,
Bharat Bhushan <bbhushan2@...vell.com>,
Joseph Longever <jlongever@...vell.com>
Cc: Arnd Bergmann <arnd@...db.de>, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH] hwrng: cn10k - HW_RANDOM_CN10K should depend on ARCH_THUNDER
The Marvell CN10K True Random Number generator is only present on
Marvell CN10K SoCs, and not available as an independent PCIe endpoint.
Hence add a dependency on ARCH_THUNDER, to prevent asking the user about
this driver when configuring a kernel without Cavium Thunder (incl.
Marvell CN10K) SoC support.
Fixes: 38e9791a02090414 ("hwrng: cn10k - Add random number generator support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
---
drivers/char/hw_random/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index c91cb48a1db168dd..b33c01e9935336f7 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -540,7 +540,7 @@ config HW_RANDOM_ARM_SMCCC_TRNG
config HW_RANDOM_CN10K
tristate "Marvell CN10K Random Number Generator support"
- depends on HW_RANDOM && PCI && ARM64
+ depends on HW_RANDOM && PCI && ARCH_THUNDER
default HW_RANDOM
help
This driver provides support for the True Random Number
--
2.25.1
Powered by blists - more mailing lists