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

Commit f4929bf2 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 4bc67fe6 90e19eb2
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;
	}