[PATCH] hwrng: cn10k - HW_RANDOM_CN10K should depend on ARCH_THUNDER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux