mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: caam - fix typo "CRYPTO_AHASH"
@ 2013-03-05 13:33 Paul Bolle
  2013-03-08  0:51 ` Kim Phillips
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Bolle @ 2013-03-05 13:33 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller; +Cc: linux-crypto, linux-kernel

The Kconfig entry for CAAM's hash algorithm implementations has always
selected CRYPTO_AHASH. But there's no corresponding Kconfig symbol.

It seems it was intended to select CRYPTO_HASH, like other crypto
drivers do. That would apparently (indirectly) select CRYPTO_HASH2,
which would enable the ahash functionality this driver uses.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
0) Untested!

1) Apparently, one can indirectly select a Kconfig symbol. That actually
surprised me. But if the kconfig parser does not work this way this
patch (and it's explanation) is bogus.

 drivers/crypto/caam/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/Kconfig b/drivers/crypto/caam/Kconfig
index 65c7668..b44091c 100644
--- a/drivers/crypto/caam/Kconfig
+++ b/drivers/crypto/caam/Kconfig
@@ -78,7 +78,7 @@ config CRYPTO_DEV_FSL_CAAM_AHASH_API
 	tristate "Register hash algorithm implementations with Crypto API"
 	depends on CRYPTO_DEV_FSL_CAAM
 	default y
-	select CRYPTO_AHASH
+	select CRYPTO_HASH
 	help
 	  Selecting this will offload ahash for users of the
 	  scatterlist crypto API to the SEC4 via job ring.
-- 
1.7.11.7


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

* Re: [PATCH] crypto: caam - fix typo "CRYPTO_AHASH"
  2013-03-05 13:33 [PATCH] crypto: caam - fix typo "CRYPTO_AHASH" Paul Bolle
@ 2013-03-08  0:51 ` Kim Phillips
  2013-03-10 10:17   ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Kim Phillips @ 2013-03-08  0:51 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Herbert Xu, David S. Miller, linux-crypto, linux-kernel

On Tue, 5 Mar 2013 14:33:16 +0100
Paul Bolle <pebolle@tiscali.nl> wrote:

> The Kconfig entry for CAAM's hash algorithm implementations has always
> selected CRYPTO_AHASH. But there's no corresponding Kconfig symbol.
> 
> It seems it was intended to select CRYPTO_HASH, like other crypto
> drivers do. That would apparently (indirectly) select CRYPTO_HASH2,
> which would enable the ahash functionality this driver uses.
> 
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
> ---

Reviewed-by: Kim Phillips <kim.phillips@freescale.com>

Kim


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

* Re: [PATCH] crypto: caam - fix typo "CRYPTO_AHASH"
  2013-03-08  0:51 ` Kim Phillips
@ 2013-03-10 10:17   ` Herbert Xu
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2013-03-10 10:17 UTC (permalink / raw)
  To: Kim Phillips; +Cc: Paul Bolle, David S. Miller, linux-crypto, linux-kernel

On Thu, Mar 07, 2013 at 06:51:27PM -0600, Kim Phillips wrote:
> On Tue, 5 Mar 2013 14:33:16 +0100
> Paul Bolle <pebolle@tiscali.nl> wrote:
> 
> > The Kconfig entry for CAAM's hash algorithm implementations has always
> > selected CRYPTO_AHASH. But there's no corresponding Kconfig symbol.
> > 
> > It seems it was intended to select CRYPTO_HASH, like other crypto
> > drivers do. That would apparently (indirectly) select CRYPTO_HASH2,
> > which would enable the ahash functionality this driver uses.
> > 
> > Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
> > ---
> 
> Reviewed-by: Kim Phillips <kim.phillips@freescale.com>

Patch applied.
-- 
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] 3+ messages in thread

end of thread, other threads:[~2013-03-10 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 13:33 [PATCH] crypto: caam - fix typo "CRYPTO_AHASH" Paul Bolle
2013-03-08  0:51 ` Kim Phillips
2013-03-10 10:17   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®