]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon/zip - optimize the address offset of the reg query function
authorChenghai Huang <huangchenghai2@huawei.com>
Sat, 1 Jun 2024 02:51:50 +0000 (10:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Jun 2024 11:47:58 +0000 (19:47 +0800)
commitc17b56d96ce614cde4aa61e8fc800f04182eec25
treedb886ff391dafc70bc946a14a4afbf660dfae5e4
parent13e21e0ba44f5fad02a3b7b34987ff3845718198
crypto: hisilicon/zip - optimize the address offset of the reg query function

Currently, the reg is queried based on the fixed address offset
array. When the number of accelerator cores changes, the system
can not flexibly respond to the change.

Therefore, the reg to be queried is calculated based on the
comp or decomp core base address.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_main.c