Commit 8b21a9b1 authored by Weili Qian's avatar Weili Qian Committed by Greg Kroah-Hartman
Browse files

crypto: hisilicon/qm - reset device before enabling it



[ Upstream commit 5d2d1ee0 ]

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: default avatarWeili Qian <qianweili@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: b04f06fc ("crypto: hisilicon/qm - inject error before stopping queue")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7803e8cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment