e50a4182849837368b68c97c77712309e0151613
[openwrt/staging/aparcar.git] /
1 From 1ef52a95ea53c3c54b061e3f1af85976356c7132 Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@googlemail.com>
3 Date: Fri, 25 Aug 2017 15:47:16 +0200
4 Subject: [PATCH 03/25] crypto: crypto4xx - set CRYPTO_ALG_KERN_DRIVER_ONLY
5 flag
6
7 The security offload function is performed by a cryptographic
8 engine core attached to the 128-bit PLB (processor local bus)
9 with builtin DMA and interrupt controllers. This, I think,
10 satisfies the requirement for the CRYPTO_ALG_KERN_DRIVER_ONLY
11 flag.
12
13 Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
14 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
15 ---
16 drivers/crypto/amcc/crypto4xx_core.c | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
18
19 --- a/drivers/crypto/amcc/crypto4xx_core.c
20 +++ b/drivers/crypto/amcc/crypto4xx_core.c
21 @@ -1114,7 +1114,9 @@ struct crypto4xx_alg_common crypto4xx_al
22 .cra_name = "cbc(aes)",
23 .cra_driver_name = "cbc-aes-ppc4xx",
24 .cra_priority = CRYPTO4XX_CRYPTO_PRIORITY,
25 - .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC,
26 + .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER |
27 + CRYPTO_ALG_ASYNC |
28 + CRYPTO_ALG_KERN_DRIVER_ONLY,
29 .cra_blocksize = AES_BLOCK_SIZE,
30 .cra_ctxsize = sizeof(struct crypto4xx_ctx),
31 .cra_type = &crypto_ablkcipher_type,