Ver código fonte

Merge "msm: ipa5: check if the default channel is already tore down"

qctecmdr 3 anos atrás
pai
commit
53ed770d59
1 arquivos alterados com 9 adições e 4 exclusões
  1. 9 4
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 9 - 4
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -1614,10 +1614,15 @@ int ipa3_teardown_sys_pipe(u32 clnt_hdl)
 			return i;
 			return i;
 		}
 		}
 
 
-		result = ipa3_teardown_coal_def_pipe(i);
-		if (result) {
-			IPAERR("failed to teardown default coal pipe\n");
-			return result;
+		/* If the default channel is already torn down,
+		 * resetting only coalescing channel.
+		 */
+		if (ipa3_ctx->ep[i].valid) {
+			result = ipa3_teardown_coal_def_pipe(i);
+			if (result) {
+				IPAERR("failed to teardown default coal pipe\n");
+				return result;
+			}
 		}
 		}
 	}
 	}