Browse Source

msm: ipa: fix to check for ECONNRESET

ECONNRESET is returned if Q6 QMI service is down. Make changes to
check for ECONNRESET as well to detect SSR.

Change-Id: If466106ed6726aa7d60af86bdcf5e55ef03b6e2c
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Chaitanya Pratapa 4 years ago
parent
commit
18866f3967
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

@@ -439,7 +439,7 @@ static int ipa3_check_qmi_response(int rc,
 			"Timeout for qmi request id %d\n", req_id);
 			return rc;
 		}
-		if ((rc == -ENETRESET) || (rc == -ENODEV)) {
+		if ((rc == -ENETRESET) || (rc == -ENODEV) || (rc == -ECONNRESET)) {
 			IPAWANERR(
 			"SSR while waiting for qmi request id %d\n", req_id);
 			return rc;