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

Commit 48875cd0 authored by Divya Sharma's avatar Divya Sharma
Browse files

Revert "net: qrtr: mhi: Remove timeout and interruptible"



This reverts commit 27068eb8.

Change-Id: Ib52e7c0dae863b97720f814dc78f677f137ad163
Signed-off-by: default avatarDivya Sharma <divyash@codeaurora.org>
parent 29ba1c51
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -116,10 +116,14 @@ static int qcom_mhi_qrtr_send(struct qrtr_endpoint *ep, struct sk_buff *skb)
	if (skb->sk)
		sock_hold(skb->sk);

	wait_for_completion(&pkt->done);
	rc = wait_for_completion_interruptible_timeout(&pkt->done, HZ * 5);
	if (rc > 0)
		rc = 0;
	else if (rc == 0)
		rc = -ETIMEDOUT;

	kref_put(&pkt->refcount, qrtr_mhi_pkt_release);
	return 0;
	return rc;
}

static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,