Revert "rpmsg: glink: Use complete_all for open states"

This reverts commit f66125e1c4.

Change-Id: I0bcebc68b4bf1cc36be4efc3856eb8ac2be11d75
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
This commit is contained in:
Srinivasarao P 2021-03-08 10:12:45 +05:30
parent 75c93eb439
commit 9c22726124

View File

@ -970,7 +970,7 @@ static int qcom_glink_rx_open_ack(struct qcom_glink *glink, unsigned int lcid)
return -EINVAL; return -EINVAL;
} }
complete_all(&channel->open_ack); complete(&channel->open_ack);
return 0; return 0;
} }
@ -1178,7 +1178,7 @@ static int qcom_glink_announce_create(struct rpmsg_device *rpdev)
__be32 *val = defaults; __be32 *val = defaults;
int size; int size;
if (glink->intentless || !completion_done(&channel->open_ack)) if (glink->intentless)
return 0; return 0;
prop = of_find_property(np, "qcom,intents", NULL); prop = of_find_property(np, "qcom,intents", NULL);
@ -1413,7 +1413,7 @@ static int qcom_glink_rx_open(struct qcom_glink *glink, unsigned int rcid,
channel->rcid = ret; channel->rcid = ret;
spin_unlock_irqrestore(&glink->idr_lock, flags); spin_unlock_irqrestore(&glink->idr_lock, flags);
complete_all(&channel->open_req); complete(&channel->open_req);
if (create_device) { if (create_device) {
rpdev = kzalloc(sizeof(*rpdev), GFP_KERNEL); rpdev = kzalloc(sizeof(*rpdev), GFP_KERNEL);