瀏覽代碼

msm: ipa: Workaround for MHI target

Remove the gsi type pending irq check for MHI target.
We observe the HW generating the pending IEOB irq for DMA SYNC channel
as well as MHI UL channel.

Change-Id: Ib578e3e7fcf58e7cc20501994a35f14d98eda1b6
Bojun Pan 4 年之前
父節點
當前提交
c42d56691f
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      drivers/platform/msm/ipa/ipa_v3/ipa.c

+ 8 - 6
drivers/platform/msm/ipa/ipa_v3/ipa.c

@@ -5673,12 +5673,14 @@ void ipa3_disable_clks(void)
 	 * issue on GSI FW side. We need to capture before
 	 * turn off the ipa clock.
 	 */
-	type = gsi_pending_irq_type();
-	if (type) {
-		IPAERR("unexpected gsi irq type: %d\n", type);
-		/* increase ipa3_active_clients for smp2p response */
-		atomic_inc(&ipa3_ctx->ipa3_active_clients.cnt);
-		ipa_assert();
+	if (!ipa3_ctx->ipa_config_is_mhi) {
+		type = gsi_pending_irq_type();
+		if (type) {
+			IPAERR("unexpected gsi irq type: %d\n", type);
+			/* increase ipa3_active_clients for smp2p response */
+			atomic_inc(&ipa3_ctx->ipa3_active_clients.cnt);
+			ipa_assert();
+		}
 	}
 
 	ipa3_ctx->ctrl->ipa3_disable_clks();