]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: hisilicon/qm - reset device before enabling it
authorWeili Qian <qianweili@huawei.com>
Sat, 31 Aug 2024 11:48:29 +0000 (19:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:32:27 +0000 (16:32 +0200)
commit7c5f21d18b63023ebcbb5c2b6ed46f2b5370ac1c
tree61ac81bfaa9fc7d04402658110d71d4b2b54a78f
parent285be321cf07814c33b767c34a294e0b55fe2936
crypto: hisilicon/qm - reset device before enabling it

[ Upstream commit 5d2d1ee0874c26b8010ddf7f57e2f246e848af38 ]

Before the device is enabled again, the device may still
store the previously processed data. If an error occurs in
the previous task, the device may fail to be enabled again.
Therefore, before enabling device, reset the device to restore
the initial state.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: b04f06fc0243 ("crypto: hisilicon/qm - inject error before stopping queue")
Signed-off-by: Sasha Levin <sashal@kernel.org>
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