linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hwrng: cavium - HW_RANDOM_CAVIUM should depend on ARCH_THUNDER
@ 2022-01-12 14:05 Geert Uytterhoeven
  2022-01-28  6:24 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2022-01-12 14:05 UTC (permalink / raw)
  To: Herbert Xu, Ananth Jasty, Omer Khaliq
  Cc: Arnd Bergmann, linux-crypto, linux-kernel, Geert Uytterhoeven

The Cavium ThunderX Random Number Generator is only present on Cavium
ThunderX 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 SoC  support.

Fixes: cc2f1908c6b8f625 ("hwrng: cavium - Add Cavium HWRNG driver for ThunderX SoC.")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.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 b33c01e9935336f7..263861c88fcc7e98 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -414,7 +414,7 @@ config HW_RANDOM_MESON
 
 config HW_RANDOM_CAVIUM
 	tristate "Cavium ThunderX Random Number Generator support"
-	depends on HW_RANDOM && PCI && ARM64
+	depends on HW_RANDOM && PCI && ARCH_THUNDER
 	default HW_RANDOM
 	help
 	  This driver provides kernel-side support for the Random Number
-- 
2.25.1


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

* Re: [PATCH] hwrng: cavium - HW_RANDOM_CAVIUM should depend on ARCH_THUNDER
  2022-01-12 14:05 [PATCH] hwrng: cavium - HW_RANDOM_CAVIUM should depend on ARCH_THUNDER Geert Uytterhoeven
@ 2022-01-28  6:24 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2022-01-28  6:24 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Ananth Jasty, Omer Khaliq, Arnd Bergmann, linux-crypto, linux-kernel

On Wed, Jan 12, 2022 at 03:05:03PM +0100, Geert Uytterhoeven wrote:
> The Cavium ThunderX Random Number Generator is only present on Cavium
> ThunderX 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 SoC  support.
> 
> Fixes: cc2f1908c6b8f625 ("hwrng: cavium - Add Cavium HWRNG driver for ThunderX SoC.")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  drivers/char/hw_random/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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

end of thread, other threads:[~2022-01-28  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 14:05 [PATCH] hwrng: cavium - HW_RANDOM_CAVIUM should depend on ARCH_THUNDER Geert Uytterhoeven
2022-01-28  6:24 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).