From c341ec01cc5dfa8d0e54eac634cbcae76a1088f7 Mon Sep 17 00:00:00 2001 From: Ashok Vuyyuru Date: Mon, 30 Nov 2020 22:45:02 +0530 Subject: [PATCH] msm: ipa3: Fix to remove max poll count in gsi isr handle In SSR scenario possiable to receive the contineous interrupt when IPA HW recovered from temporary stall. Add changes to remove the max poll count in gsi isr handle function. Change-Id: Idaf1d9a070426188f3614ebf85010d0107d79dfb Signed-off-by: Ashok Vuyyuru --- drivers/platform/msm/gsi/gsi.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/platform/msm/gsi/gsi.c b/drivers/platform/msm/gsi/gsi.c index f501fe088731..74075038f708 100644 --- a/drivers/platform/msm/gsi/gsi.c +++ b/drivers/platform/msm/gsi/gsi.c @@ -776,13 +776,10 @@ static void gsi_handle_general(int ee) GSI_EE_n_CNTXT_GSI_IRQ_CLR_OFFS(ee)); } -#define GSI_ISR_MAX_ITER 50 - static void gsi_handle_irq(void) { uint32_t type; int ee = gsi_ctx->per.ee; - unsigned long cnt = 0; int index; while (1) { @@ -830,15 +827,6 @@ static void gsi_handle_irq(void) if (type & GSI_EE_n_CNTXT_TYPE_IRQ_GENERAL_BMSK) gsi_handle_general(ee); - if (++cnt > GSI_ISR_MAX_ITER) { - /* - * Max number of spurious interrupts from hardware. - * Unexpected hardware state. - */ - GSIERR("Too many spurious interrupt from GSI HW\n"); - GSI_ASSERT(); - } - } }