diff options
author | 2023-12-02 17:17:20 +0800 | |
---|---|---|
committer | 2023-12-08 11:59:45 +0800 | |
commit | cf8b5156bbc8c9376f699e8d35e9464b739e33ff (patch) | |
tree | 5c5611b0187505d5a4f37edd425f8e68363d91ba /drivers/crypto/hisilicon/sec2/sec_crypto.c | |
parent | crypto: hisilicon/qm - save capability registers in qm init process (diff) | |
download | linux-rng-cf8b5156bbc8c9376f699e8d35e9464b739e33ff.tar.xz linux-rng-cf8b5156bbc8c9376f699e8d35e9464b739e33ff.zip |
crypto: hisilicon/hpre - save capability registers in probe process
Pre-store the valid value of hpre alg support related capability
register in hpre_qm_init(), which will be called by hpre_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: f214d59a0603 ("crypto: hisilicon/hpre - support hpre capability")
Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/sec2/sec_crypto.c')
0 files changed, 0 insertions, 0 deletions