Revert this patch, since it is a wrong fix that is already
removed from SDK, a new patch will be added to fix the issue
which this patch aimed at.

This reverts commit 584b14aae9213da2e06186718d655ba81e5b3c78.

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

diff --git a/drivers/crypto/intel_fcs_main.c b/drivers/crypto/intel_fcs_main.c
index 7312c54e829a..05ca55ca1032 100644
--- a/drivers/crypto/intel_fcs_main.c
+++ b/drivers/crypto/intel_fcs_main.c
@@ -695,44 +695,10 @@ static long fcs_ioctl(struct file *file, unsigned int cmd,
                ret = fcs_request_service(priv, (void *)msg,
                                          FCS_REQUEST_TIMEOUT);
                if (!ret && !priv->status) {
-                       /* to query the complete status */
-                       msg->arg[0] = ASYNC_POLL_SERVICE;
-                       msg->payload = s_buf;
-                       msg->payload_length = data->com_paras.gp_data.size;
-                       msg->command = COMMAND_POLL_SERVICE_STATUS_ASYNC;
-                       priv->client.receive_cb = fcs_data_callback;
-
-                       timeout = 100;
-                       while (timeout != 0) {
-                               ret = fcs_request_service(priv, (void *)msg,
-                                                         FCS_REQUEST_TIMEOUT);
-                               dev_dbg(dev, "request service ret=%d\n", ret);
-
-                               if (!ret && !priv->status) {
-                                       if (priv->size) {
-                                               if (!priv->kbuf) {
-                                                       dev_err(dev, "failure 
on kbuf\n");
-                                                       
fcs_close_services(priv, s_buf, NULL);
-                                                       return -EFAULT;
-                                               }
-
-                                               data->com_paras.gp_data.size = 
priv->size;
-                                               ret = 
copy_to_user(data->com_paras.gp_data.addr,
-                                                                  priv->kbuf, 
priv->size);
-                                               if (ret) {
-                                                       dev_err(dev, "failure 
on copy_to_user\n");
-                                                       
fcs_close_services(priv, s_buf, NULL);
-                                                       return -EFAULT;
-                                               }
-                                               break;
-                                       }
-                               } else {
-                                       data->com_paras.gp_data.addr = NULL;
-                                       data->com_paras.gp_data.size = 0;
-                                       break;
-                               }
-                               timeout--;
-                               mdelay(500);
+                       if (!priv->kbuf) {
+                               dev_err(dev, "failure on kbuf\n");
+                               fcs_close_services(priv, s_buf, NULL);
+                               return -EFAULT;
                        }
                        data->com_paras.gp_data.size = priv->size;
                        ret = copy_to_user(data->com_paras.gp_data.addr,
-- 
2.35.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14056): 
https://lists.yoctoproject.org/g/linux-yocto/message/14056
Mute This Topic: https://lists.yoctoproject.org/mt/106736318/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