crypto: hisilicon/zip - Use hisi_qm_alloc_qps_node() when init ctx
authorShukun Tan <tanshukun1@huawei.com>
Tue, 10 Mar 2020 08:42:50 +0000 (16:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Mar 2020 03:36:50 +0000 (14:36 +1100)
commit18f1ab3f74d61f773dcad257783bfbcef9ac10ea
tree463630f0cb781047512f558fb8d9032ed58e2fda
parent3f1ec97aacf19eb44162fc9c413eb4cd66f62002
crypto: hisilicon/zip - Use hisi_qm_alloc_qps_node() when init ctx

Encapsulate hisi_qm_alloc_qps_node() to new interface to replace
find_zip_device(), which will fix the bug of creating QP failure
especially in multi-thread scenario.

Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Zaibo Xu <xuzaibo@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip.h
drivers/crypto/hisilicon/zip/zip_crypto.c
drivers/crypto/hisilicon/zip/zip_main.c