Merge "msm: ipa3: Fix to remove max poll count in gsi isr handle"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
13797b24fb
@@ -992,13 +992,10 @@ static void gsi_handle_general(int ee)
|
|||||||
gsihal_write_reg_n(GSI_EE_n_CNTXT_GSI_IRQ_CLR, ee, val);
|
gsihal_write_reg_n(GSI_EE_n_CNTXT_GSI_IRQ_CLR, ee, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GSI_ISR_MAX_ITER 50
|
|
||||||
|
|
||||||
static void gsi_handle_irq(void)
|
static void gsi_handle_irq(void)
|
||||||
{
|
{
|
||||||
uint32_t type;
|
uint32_t type;
|
||||||
int ee = gsi_ctx->per.ee;
|
int ee = gsi_ctx->per.ee;
|
||||||
unsigned long cnt = 0;
|
|
||||||
int index;
|
int index;
|
||||||
struct gsihal_reg_ctx_type_irq ctx_type_irq;
|
struct gsihal_reg_ctx_type_irq ctx_type_irq;
|
||||||
|
|
||||||
@@ -1047,15 +1044,6 @@ static void gsi_handle_irq(void)
|
|||||||
if (ctx_type_irq.general)
|
if (ctx_type_irq.general)
|
||||||
gsi_handle_general(ee);
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user