Loading
crypto: hisilicon/zip - save capability registers in probe process
mainline inclusion from mainline-v6.8-rc1 commit 2ff0ad847951d61c2d8b309e1ccefb26c57dcc7b 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=2ff0ad847951d61c2d8b309e1ccefb26c57dcc7b ---------------------------------------------------------------------- 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: db700974 ("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:
JangShui Yang <yangjiangshui@h-partners.com>