Skip to contentSkip to conversation

crypto: fix missing CRYPTO_ALG_ASYNC for async drivers

PATCH In review Barry Song 2 participants 5 messages Feb 29, 2024 – Mar 8, 2024

Subsystems (3)
lore
Share & tools
lore

Barry Song

author
#0 lore raw

v2 cover crypto: fix missing CRYPTO_ALG_ASYNC for async drivers

From: Barry Song <[email protected]>

Fix missing CRYPTO_ALG_ASYNC cra_flags for hisilicon and intel iaa drivers.

-V2:
* collect Acked-by of Tom and Yang, thanks for reviewing!

Barry Song (2):
crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags
crypto: iaa - fix the missing CRYPTO_ALG_ASYNC in cra_flags

 drivers/crypto/hisilicon/zip/zip_crypto.c  | 1 +
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 1/2 crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags

From: Barry Song <[email protected]>

Add the missing CRYPTO_ALG_ASYNC flag since hisilizon zip driver works asynchronously.

---
 drivers/crypto/hisilicon/zip/zip_crypto.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/hisilicon/zip/zip_crypto.c +1 -0
index c650c741a18d..94e2d66b04b6 100644
@@ -591,6 +591,7 @@ static struct acomp_alg hisi_zip_acomp_deflate = {
 	.base			= {
 		.cra_name		= "deflate",
 		.cra_driver_name	= "hisi-deflate-acomp",
+		.cra_flags		= CRYPTO_ALG_ASYNC,
 		.cra_module		= THIS_MODULE,
 		.cra_priority		= HZIP_ALG_PRIORITY,
 		.cra_ctxsize		= sizeof(struct hisi_zip_ctx),
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH v2 2/2 crypto: iaa - fix the missing CRYPTO_ALG_ASYNC in cra_flags

In reply to Barry Song

From: Barry Song <[email protected]>

Add the missing CRYPTO_ALG_ASYNC flag since intel iaa driver works asynchronously.

---
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/intel/iaa/iaa_crypto_main.c +1 -0
index dfd3baf0a8d8..91adf9d76a2e 100644
@@ -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,
Signature · 1 line
2.34.1
author
#3 lore raw
In reply to Barry Song

On Thu, Feb 29, 2024 at 11:15 PM Barry Song <[email protected]> wrote:

Hi Herbert,
Did you miss this one? hopefully, this can land in 6.9 so that acomp_is_async() can
safely land after it. Otherwise, I might break intel/iaa and hisilicon.

Thanks
Barry

Quoted 20 lines

From: Barry Song <[email protected]>

Fix missing CRYPTO_ALG_ASYNC cra_flags for hisilicon and intel iaa drivers.

-V2:
* collect Acked-by of Tom and Yang, thanks for reviewing!

Barry Song (2):
crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags
crypto: iaa - fix the missing CRYPTO_ALG_ASYNC in cra_flags

 drivers/crypto/hisilicon/zip/zip_crypto.c  | 1 +
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 1 +
 2 files changed, 2 insertions(+)

--
2.34.1

maintainer
#4 lore raw
In reply to Barry Song
Quoted 8 lines · Barry Song

From: Barry Song <[email protected]>

Fix missing CRYPTO_ALG_ASYNC cra_flags for hisilicon and intel iaa drivers.

-V2:
* collect Acked-by of Tom and Yang, thanks for reviewing!

Quoted 10 lines

Barry Song (2):
crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags
crypto: iaa - fix the missing CRYPTO_ALG_ASYNC in cra_flags

 drivers/crypto/hisilicon/zip/zip_crypto.c  | 1 +
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.34.1

All applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt