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

Commit f0ad5675 authored by Ravinder Konka's avatar Ravinder Konka
Browse files

msm: ipa: Fix to read all QMI responses from modem



Tethered stats will be polled every few seconds. In some
cases there will be a possibility that modem doesn't respond back
to the request on time and sends both the responses for the next
request. This can result in a stall where SYNC message is not read
by IPA QMI driver. Make a change to read all QMI responses from modem
instead of reading only once.

Change-Id: I312a38bac91c7feab2df3a2b35cb3c3c32624db4
Acked-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarRavinder Konka <rkonka@codeaurora.org>
parent 2002720e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -688,8 +688,11 @@ static void ipa_q6_clnt_recv_msg(struct work_struct *work)
{
	int rc;

	do {
		IPAWANDBG("Notified about a Receive Event");
		rc = qmi_recv_msg(ipa_q6_clnt);
	if (rc < 0)
	} while (rc == 0);
	if (rc != -ENOMSG)
		IPAWANERR("Error receiving message\n");
}

+5 −2
Original line number Diff line number Diff line
@@ -711,8 +711,11 @@ static void ipa3_q6_clnt_recv_msg(struct work_struct *work)
{
	int rc;

	do {
		IPAWANDBG("Notified about a Receive Event");
		rc = qmi_recv_msg(ipa_q6_clnt);
	if (rc < 0)
	} while (rc == 0);
	if (rc != -ENOMSG)
		IPAWANERR("Error receiving message\n");
}