]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - get hardware features from hardware registers
authorWeili Qian <qianweili@huawei.com>
Fri, 9 Sep 2022 09:46:55 +0000 (17:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Sep 2022 10:29:44 +0000 (18:29 +0800)
commit5d84b9fcd1d4b762152e1fdd0b48abf0b35fb660
tree4cf1515bd90d8d85ae9120c6af9c420962fd96fa
parenta29599de1028cb873cc6b75a8d7569a5d4362904
crypto: hisilicon/qm - get hardware features from hardware registers

Before hardware V3, hardwares do not provide the feature registers,
driver resolves hardware differences based on the hardware version.
As a result, the driver does not support the new hardware.

Hardware V3 and later versions support to obtain hardware features,
such as power-gating management and doorbell isolation, through
the hardware registers. To be compatible with later hardware versions,
the features of the current device is obtained by reading the
hardware registers instead of the hardware version.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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
include/linux/hisi_acc_qm.h