crypto: hisilicon/qm - disable same error report before resetting

[ Upstream commit c418ba6bac ]

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: eaebf4c3b1 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Weili Qian 2024-10-26 19:44:29 +08:00 • committed by Greg Kroah-Hartman
commit 67c3ca63d4
5 changed files with 110 additions and 50 deletions