diff mbox series

[2/2] crypto: iaa - fix the missing CRYPTO_ALG_ASYNC in cra_flags

Message ID 20240220044222.197614-2-v-songbaohua@oppo.com
State Superseded
Headers show
Series None | expand

Commit Message

Barry Song Feb. 20, 2024, 4:42 a.m. UTC
Add the missing CRYPTO_ALG_ASYNC flag since intel iaa driver
works asynchronously.

Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Barry Song <v-songbaohua@oppo.com>
---
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Zanussi, Tom Feb. 21, 2024, 9:18 p.m. UTC | #1
Hi Barry,

On Tue, 2024-02-20 at 17:42 +1300, Barry Song wrote:
> Add the missing CRYPTO_ALG_ASYNC flag since intel iaa driver
> works asynchronously.
> 
> Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
> Signed-off-by: Barry Song <v-songbaohua@oppo.com>
> ---
>  drivers/crypto/intel/iaa/iaa_crypto_main.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c
> b/drivers/crypto/intel/iaa/iaa_crypto_main.c
> index dfd3baf0a8d8..91adf9d76a2e 100644
> --- a/drivers/crypto/intel/iaa/iaa_crypto_main.c
> +++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c
> @@ -1916,6 +1916,7 @@ static struct acomp_alg iaa_acomp_fixed_deflate
> = {
>         .base                   = {
>                 .cra_name               = "deflate",
>                 .cra_driver_name        = "deflate-iaa",
> +               .cra_flags              = CRYPTO_ALG_ASYNC,

Makes sense, thanks for the patch.

Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com>
diff mbox series

Patch

diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c
index dfd3baf0a8d8..91adf9d76a2e 100644
--- a/drivers/crypto/intel/iaa/iaa_crypto_main.c
+++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c
@@ -1916,6 +1916,7 @@  static struct acomp_alg iaa_acomp_fixed_deflate = {
 	.base			= {
 		.cra_name		= "deflate",
 		.cra_driver_name	= "deflate-iaa",
+		.cra_flags		= CRYPTO_ALG_ASYNC,
 		.cra_ctxsize		= sizeof(struct iaa_compression_ctx),
 		.cra_module		= THIS_MODULE,
 		.cra_priority		= IAA_ALG_PRIORITY,