mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
crypto: hisilicon/hpre - add version adapt to new algorithms
A new generation of accelerator Kunpeng930 has appeared, and the corresponding driver needs to be updated to support some new algorithms of Kunpeng930. To be compatible with Kunpeng920, we add parameter 'struct hisi_qm *qm' to sec_algs_(un)register to identify the chip's version. Signed-off-by: Meng Yu <yumeng18@huawei.com> Reviewed-by: Zaibo Xu <xuzaibo@huawei.com> Reviewed-by: Longfang Liu <liulongfang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -665,7 +665,7 @@ static struct acomp_alg hisi_zip_acomp_gzip = {
|
||||
}
|
||||
};
|
||||
|
||||
int hisi_zip_register_to_crypto(void)
|
||||
int hisi_zip_register_to_crypto(struct hisi_qm *qm)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -684,7 +684,7 @@ int hisi_zip_register_to_crypto(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void hisi_zip_unregister_from_crypto(void)
|
||||
void hisi_zip_unregister_from_crypto(struct hisi_qm *qm)
|
||||
{
|
||||
crypto_unregister_acomp(&hisi_zip_acomp_gzip);
|
||||
crypto_unregister_acomp(&hisi_zip_acomp_zlib);
|
||||
|
||||
Reference in New Issue
Block a user