Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c227261 authored by Srinivasarao P's avatar Srinivasarao P
Browse files

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



This reverts commit f66125e1.

Change-Id: I0bcebc68b4bf1cc36be4efc3856eb8ac2be11d75
Signed-off-by: default avatarSrinivasarao P <spathi@codeaurora.org>
parent 75c93eb4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -970,7 +970,7 @@ static int qcom_glink_rx_open_ack(struct qcom_glink *glink, unsigned int lcid)
		return -EINVAL;
	}

	complete_all(&channel->open_ack);
	complete(&channel->open_ack);

	return 0;
}
@@ -1178,7 +1178,7 @@ static int qcom_glink_announce_create(struct rpmsg_device *rpdev)
	__be32 *val = defaults;
	int size;

	if (glink->intentless || !completion_done(&channel->open_ack))
	if (glink->intentless)
		return 0;

	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;
	spin_unlock_irqrestore(&glink->idr_lock, flags);

	complete_all(&channel->open_req);
	complete(&channel->open_req);

	if (create_device) {
		rpdev = kzalloc(sizeof(*rpdev), GFP_KERNEL);