This reverts commit bf6d52f542b0a028c9a4c5994927f24994686bac.

The issue is already fixed by another SDK patch 7d97a731ceb5
("HSD #16013024105: fpga: stratix10-soc: stop kernel thread"),
Revert this one to avoid "fcs_clent -G" run failed with error:
"svc_normal_to_secure_thread: STATUS_ERROR"

Signed-off-by: Liwei Song <liwei.s...@windriver.com>
---
 drivers/crypto/intel_fcs_main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/crypto/intel_fcs_main.c b/drivers/crypto/intel_fcs_main.c
index 759db2a7204d..4df66c73273b 100644
--- a/drivers/crypto/intel_fcs_main.c
+++ b/drivers/crypto/intel_fcs_main.c
@@ -338,10 +338,8 @@ static int fcs_request_service(struct intel_fcs_priv *priv,
        reinit_completion(&priv->completion);
 
        ret = stratix10_svc_send(priv->chan, p_msg);
-       if (ret) {
-               mutex_unlock(&priv->lock);
+       if (ret)
                return -EINVAL;
-       }
 
        ret = wait_for_completion_timeout(&priv->completion,
                                                        timeout);
-- 
2.40.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13770): 
https://lists.yoctoproject.org/g/linux-yocto/message/13770
Mute This Topic: https://lists.yoctoproject.org/mt/105302920/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to