crypto: hisilicon - support get algs by the capability register
authorZhiqi Song <songzhiqi1@huawei.com>
Fri, 9 Sep 2022 09:47:04 +0000 (17:47 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Sep 2022 10:29:46 +0000 (18:29 +0800)
commitd310dc2554a5296a338f974d2b4e4f9af2687558
treee3ae051f89e34a43a63fc238a0cb546956bab91a
parent921715b6b7827157bba6e8153d7a09774b0d034f
crypto: hisilicon - support get algs by the capability register

The value of qm algorithm can change dynamically according to the
value of the capability register.

Add xxx_set_qm_algs() function to obtain the algs that the
hardware device supported from the capability register and set
them into usr mode attribute files.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c
drivers/crypto/hisilicon/hpre/hpre_main.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/hisilicon/sec2/sec_main.c
drivers/crypto/hisilicon/zip/zip_main.c