crypto: hisilicon/qm - disable same error report before resetting
authorWeili Qian <qianweili@huawei.com>
Sat, 26 Oct 2024 11:44:29 +0000 (19:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Nov 2024 10:23:25 +0000 (18:23 +0800)
commitc418ba6baca3ae10ffaf47b0803d2a9e6bf1af96
tree2fd9aa3eec6dc1a92cb5a39388079d21589cac8c
parent2a69297eed87c1f3ad33b8a169025c06adde5dcf
crypto: hisilicon/qm - disable same error report before resetting

If an error indicating that the device needs to be reset is reported,
disable the error reporting before device reset is complete,
enable the error reporting after the reset is complete to prevent
the same error from being reported repeatedly.

Fixes: eaebf4c3b103 ("crypto: hisilicon - Unify hardware error init/uninit into QM")
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