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

Commit 90e19eb2 authored by Shrey Vijay's avatar Shrey Vijay
Browse files

slim-msm: Use non-interruptible wait for QMI message



Using interruptible wait for QMI transaction can result
in false abortion of wait on task, due to unwanted signal
handling.

To avoid unnecessary signal handling, use non-interruptible
wait for QMI transactions.

Change-Id: I515271fc3dfd073df82d102508704db5e45352f4
Signed-off-by: default avatarShrey Vijay <shreyv@codeaurora.org>
parent 709e9085
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1621,8 +1621,11 @@ static int msm_slim_qmi_send_select_inst_req(struct msm_slim_ctrl *dev,
		return rc;
	}

	rc = qmi_txn_wait(&txn, SLIM_QMI_RESP_TOUT);
	if (rc < 0) {
	rc = wait_for_completion_timeout(&txn.completion,
					SLIM_QMI_RESP_TOUT);
	qmi_txn_cancel(&txn);
	if (!rc) {
		rc = -ETIMEDOUT;
		SLIM_ERR(dev, "%s: QMI TXN wait failed: %d\n", __func__, rc);
		return rc;
	}