Skip to content

Commit ceb4afb

Browse files
arndbherbertx
authored andcommitted
crypto: atmel - refine Kconfig dependencies
With the new authenc support, we get a harmless Kconfig warning: warning: (CRYPTO_DEV_ATMEL_AUTHENC) selects CRYPTO_DEV_ATMEL_SHA which has unmet direct dependencies (CRYPTO && CRYPTO_HW && ARCH_AT91) The problem is that each of the options has slightly different dependencies, although they all seem to want the same thing: allow building for real AT91 targets that actually have the hardware, and possibly for compile testing. This makes all four options consistent: instead of depending on a particular dmaengine implementation, we depend on the ARM platform, CONFIG_COMPILE_TEST as an alternative when that is turned off. This makes the 'select' statements work correctly. Fixes: 89a82ef ("crypto: atmel-authenc - add support to authenc(hmac(shaX), Y(aes)) modes") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent db91af0 commit ceb4afb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/crypto/Kconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ config CRYPTO_DEV_BFIN_CRC
417417

418418
config CRYPTO_DEV_ATMEL_AUTHENC
419419
tristate "Support for Atmel IPSEC/SSL hw accelerator"
420-
depends on (ARCH_AT91 && HAS_DMA) || COMPILE_TEST
420+
depends on HAS_DMA
421+
depends on ARCH_AT91 || COMPILE_TEST
421422
select CRYPTO_AUTHENC
422423
select CRYPTO_DEV_ATMEL_AES
423424
select CRYPTO_DEV_ATMEL_SHA
@@ -430,7 +431,7 @@ config CRYPTO_DEV_ATMEL_AUTHENC
430431
config CRYPTO_DEV_ATMEL_AES
431432
tristate "Support for Atmel AES hw accelerator"
432433
depends on HAS_DMA
433-
depends on AT_XDMAC || AT_HDMAC || COMPILE_TEST
434+
depends on ARCH_AT91 || COMPILE_TEST
434435
select CRYPTO_AES
435436
select CRYPTO_AEAD
436437
select CRYPTO_BLKCIPHER
@@ -444,7 +445,7 @@ config CRYPTO_DEV_ATMEL_AES
444445

445446
config CRYPTO_DEV_ATMEL_TDES
446447
tristate "Support for Atmel DES/TDES hw accelerator"
447-
depends on ARCH_AT91
448+
depends on ARCH_AT91 || COMPILE_TEST
448449
select CRYPTO_DES
449450
select CRYPTO_BLKCIPHER
450451
help
@@ -457,7 +458,7 @@ config CRYPTO_DEV_ATMEL_TDES
457458

458459
config CRYPTO_DEV_ATMEL_SHA
459460
tristate "Support for Atmel SHA hw accelerator"
460-
depends on ARCH_AT91
461+
depends on ARCH_AT91 || COMPILE_TEST
461462
select CRYPTO_HASH
462463
help
463464
Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512

0 commit comments

Comments
 (0)