LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH/RFC] crypto: Add platform dependencies for CRYPTO_DEV_CCREE
@ 2018-04-17 18:14 Geert Uytterhoeven
  2018-04-17 19:53 ` Arnd Bergmann
  2018-04-18  4:32 ` Gilad Ben-Yossef
  0 siblings, 2 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2018-04-17 18:14 UTC (permalink / raw)
  To: Gilad Ben-Yossef, Herbert Xu, David S . Miller
  Cc: Arnd Bergmann, linux-crypto, linux-kernel, Geert Uytterhoeven

The ARM TrustZone CryptoCell is found on ARM SoCs only.  Hence make it
depend on ARM or ARM64, unless compile-testing.

Drop the dependency on HAS_DMA, as DMA is always available on ARM and
ARM64 platforms, and doing so will increase compile coverage.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
Is ARM || ARM64 OK?
Or should this be limited to either ARM or ARM64? Or something else?
---
 drivers/crypto/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 3dbc47528667b77c..104640b72354d93a 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -719,7 +719,8 @@ config CRYPTO_DEV_ARTPEC6
 
 config CRYPTO_DEV_CCREE
 	tristate "Support for ARM TrustZone CryptoCell family of security processors"
-	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
+	depends on CRYPTO && CRYPTO_HW && OF
+	depends on ARM || ARM64 || COMPILE_TEST
 	default n
 	select CRYPTO_HASH
 	select CRYPTO_BLKCIPHER
-- 
2.7.4

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

end of thread, other threads:[~2018-04-23  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 18:14 [PATCH/RFC] crypto: Add platform dependencies for CRYPTO_DEV_CCREE Geert Uytterhoeven
2018-04-17 19:53 ` Arnd Bergmann
2018-04-18  7:43   ` Geert Uytterhoeven
2018-04-18  4:32 ` Gilad Ben-Yossef
2018-04-18  7:47   ` Geert Uytterhoeven
2018-04-23  7:45     ` Gilad Ben-Yossef
2018-04-23  8:11       ` Geert Uytterhoeven

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).