]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - move alloc qm->wq to qm.c
authorWeili Qian <qianweili@huawei.com>
Thu, 9 Jun 2022 12:31:18 +0000 (20:31 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Jun 2022 09:19:20 +0000 (17:19 +0800)
commitbdb5e9b19ff6ad90ca81e3ae01558a9e7efe350f
treea7308b2b4e9634a8f1d4568cabc7ce06978c95a7
parent59e54e99134771d348aeae73df6073e3f9d03945
crypto: hisilicon/qm - move alloc qm->wq to qm.c

Before stopping the function, the driver needs to flush all the remaining
work about event irq. Therefore, accelerator drivers use a private
workqueue(qm->wq) to handle event irq instead of the system workqueue.
This patch moves alloc workqueue from sec_main.c and zip_main.c to qm.c.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/sec2/sec_main.c
drivers/crypto/hisilicon/zip/zip_main.c