From c42d56691f1b351a9d581195815fc81de8d5b410 Mon Sep 17 00:00:00 2001 From: Bojun Pan Date: Wed, 28 Apr 2021 16:49:13 -0700 Subject: [PATCH] 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 --- drivers/platform/msm/ipa/ipa_v3/ipa.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa.c b/drivers/platform/msm/ipa/ipa_v3/ipa.c index 21e9a84ce0..80c86b6b8e 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa.c +++ b/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();