linux-stable/drivers/crypto/hisilicon
Zhiqi Song d7e4268a51 crypto: hisilicon/zip - save capability registers in probe process
[ Upstream commit 2ff0ad8479 ]

Pre-store the valid value of the zip alg support related capability
register in hisi_zip_qm_init(), which will be called by hisi_zip_probe().
It can reduce the number of capability register queries and avoid
obtaining incorrect values in abnormal scenarios, such as reset failed
and the memory space disabled.

Fixes: db700974b6 ("crypto: hisilicon/zip - support zip capability")
Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:27:22 -08:00
..
hpre crypto: hisilicon/hpre - save capability registers in probe process 2024-01-25 15:27:22 -08:00
sec crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-07-08 15:21:16 +08:00
sec2 crypto: hisilicon/sec2 - save capability registers in probe process 2024-01-25 15:27:22 -08:00
trng crypto: hisilicon/trng - fix local variable type 2022-06-17 17:19:20 +08:00
zip crypto: hisilicon/zip - save capability registers in probe process 2024-01-25 15:27:22 -08:00
Kconfig crypto: ccree,hisilicon - Fix dependencies to correct algorithm 2023-01-07 11:11:52 +01:00
Makefile crypto: hisilicon/qm - split a debugfs.c from qm 2023-11-20 11:52:06 +01:00
debugfs.c crypto: hisilicon/qm - split a debugfs.c from qm 2023-11-20 11:52:06 +01:00
qm.c crypto: hisilicon/qm - add a function to set qm algs 2024-01-25 15:27:22 -08:00
qm_common.h crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:52:06 +01:00
sgl.c crypto: hisilicon: Wipe entire pool on error 2023-03-10 09:33:50 +01:00