Loading
crypto: hisilicon/hpre - save capability registers in probe process
mainline inclusion from mainline-v6.8-rc1 commit cf8b5156bbc8c9376f699e8d35e9464b739e33ff category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I925L9 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cf8b5156bbc8c9376f699e8d35e9464b739e33ff ---------------------------------------------------------------------- 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: f214d59a ("crypto: hisilicon/hpre - support hpre capability") Signed-off-by:Zhiqi Song <songzhiqi1@huawei.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
JangShui Yang <yangjiangshui@h-partners.com>