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

Commit 3f051791 authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: glink_probe: Return if rpmsg_send fails



During the SSR notification, the glink_ssr callback should return
immediately if rpmsg_send returns an error since no response from the
remote processor is expected.

Change-Id: I462dcbf90482f127fe310dc6d8af34f8104b9016
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 87b4dbef
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -118,9 +118,11 @@ static int glink_ssr_ssr_cb(struct notifier_block *this,
			   ssr->seq_num);

		ret = rpmsg_send(ssr->ept, &msg, sizeof(msg));
		if (ret)
		if (ret) {
			GLINK_ERR(dev, "fail to send do cleanup to %s %d\n",
				  nb->ssr_label, ret);
			return NOTIFY_DONE;
		}

		ret = wait_for_completion_timeout(&ssr->completion, HZ);
		if (!ret)