linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers
@ 2024-02-29 10:14 Barry Song
  2024-02-29 10:14 ` [PATCH v2 1/2] crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags Barry Song
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Barry Song @ 2024-02-29 10:14 UTC (permalink / raw)
  To: davem, herbert, linux-crypto; +Cc: linux-kernel, Barry Song

From: Barry Song <v-songbaohua@oppo.com>

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


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

* [PATCH v2 1/2] crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags
  2024-02-29 10:14 [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
@ 2024-02-29 10:14 ` Barry Song
  2024-02-29 10:14 ` [PATCH v2 2/2] crypto: iaa " Barry Song
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Barry Song @ 2024-02-29 10:14 UTC (permalink / raw)
  To: davem, herbert, linux-crypto
  Cc: linux-kernel, Barry Song, Zhou Wang, Yang Shen

From: Barry Song <v-songbaohua@oppo.com>

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

Cc: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Barry Song <v-songbaohua@oppo.com>
Acked-by: Yang Shen <shenyang39@huawei.com>
---
 drivers/crypto/hisilicon/zip/zip_crypto.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c
index c650c741a18d..94e2d66b04b6 100644
--- a/drivers/crypto/hisilicon/zip/zip_crypto.c
+++ b/drivers/crypto/hisilicon/zip/zip_crypto.c
@@ -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),
-- 
2.34.1


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

* [PATCH v2 2/2] crypto: iaa - fix the missing CRYPTO_ALG_ASYNC in cra_flags
  2024-02-29 10:14 [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
  2024-02-29 10:14 ` [PATCH v2 1/2] crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags Barry Song
@ 2024-02-29 10:14 ` Barry Song
  2024-03-01 19:33 ` [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
  2024-03-08 11:25 ` Herbert Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Barry Song @ 2024-02-29 10:14 UTC (permalink / raw)
  To: davem, herbert, linux-crypto; +Cc: linux-kernel, Barry Song, Tom Zanussi

From: Barry Song <v-songbaohua@oppo.com>

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

Signed-off-by: Barry Song <v-songbaohua@oppo.com>
Acked-by: Tom Zanussi <tom.zanussi@linux.intel.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,
 		.cra_ctxsize		= sizeof(struct iaa_compression_ctx),
 		.cra_module		= THIS_MODULE,
 		.cra_priority		= IAA_ALG_PRIORITY,
-- 
2.34.1


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

* Re: [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers
  2024-02-29 10:14 [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
  2024-02-29 10:14 ` [PATCH v2 1/2] crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags Barry Song
  2024-02-29 10:14 ` [PATCH v2 2/2] crypto: iaa " Barry Song
@ 2024-03-01 19:33 ` Barry Song
  2024-03-08 11:25 ` Herbert Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Barry Song @ 2024-03-01 19:33 UTC (permalink / raw)
  To: davem, herbert, linux-crypto; +Cc: linux-kernel, Barry Song

On Thu, Feb 29, 2024 at 11:15 PM Barry Song <21cnbao@gmail.com> 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

>
> From: Barry Song <v-songbaohua@oppo.com>
>
> 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
>

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

* Re: [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers
  2024-02-29 10:14 [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
                   ` (2 preceding siblings ...)
  2024-03-01 19:33 ` [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
@ 2024-03-08 11:25 ` Herbert Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2024-03-08 11:25 UTC (permalink / raw)
  To: Barry Song; +Cc: davem, linux-crypto, linux-kernel, Barry Song

On Thu, Feb 29, 2024 at 11:14:47PM +1300, Barry Song wrote:
> From: Barry Song <v-songbaohua@oppo.com>
> 
> 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

All applied.  Thanks.
-- 
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] 5+ messages in thread

end of thread, other threads:[~2024-03-08 11:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 10:14 [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
2024-02-29 10:14 ` [PATCH v2 1/2] crypto: hisilicon/zip - fix the missing CRYPTO_ALG_ASYNC in cra_flags Barry Song
2024-02-29 10:14 ` [PATCH v2 2/2] crypto: iaa " Barry Song
2024-03-01 19:33 ` [PATCH v2 0/2] [PATCH v2 0/2] crypto: fix missing CRYPTO_ALG_ASYNC for async drivers Barry Song
2024-03-08 11:25 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).