OSDN Git Service

soc: qcom: hab: backend should listen without timeout
authorYong Ding <yongding@codeaurora.org>
Fri, 24 Nov 2017 09:27:23 +0000 (17:27 +0800)
committerYong Ding <yongding@codeaurora.org>
Thu, 30 Nov 2017 03:20:11 +0000 (11:20 +0800)
In the handshake stage of openning hab virtual channel,
hab backend should listen without timeout so that it just
keeps waiting for the coming connection from hab frontend.

Change-Id: I399fe050c5460bf3b56f862141320b2e2afe55e1
Signed-off-by: Yong Ding <yongding@codeaurora.org>
drivers/soc/qcom/hab/hab.c

index 19b1a8f..019f93b 100644 (file)
@@ -262,7 +262,7 @@ struct virtual_channel *backend_listen(struct uhab_context *ctx,
                /* Wait for Ack sequence */
                hab_open_request_init(&request, HAB_PAYLOAD_TYPE_ACK,
                                pchan, 0, sub_id, open_id);
-               ret = hab_open_listen(ctx, dev, &request, &recv_request, HZ);
+               ret = hab_open_listen(ctx, dev, &request, &recv_request, 0);
 
                if (ret != -EAGAIN)
                        break;