]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init'
authorYang Shen <shenyang39@huawei.com>
Sat, 27 Mar 2021 07:28:47 +0000 (15:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:13 +0000 (18:28 +1100)
commitc223f3a0d2fb6544fb1cd297497310da8edd4fc0
treebaaf078d595b14bfa0168939ff403a53aaf27919
parent5526da8f0576ae5806004866fd5535262c3a5b68
crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init'

The operations about 'sqe' are different on some hardwares. Add a struct
'hisi_zip_sqe_ops' to describe the operations in a hardware. And choose the
'ops' in 'hisi_zip_acomp_init' according to the hardware.

Signed-off-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_crypto.c