Loading drivers/platform/msm/gsi/gsi.c +21 −35 Original line number Diff line number Diff line Loading @@ -811,22 +811,19 @@ 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; while (1) { if (!gsi_ctx->per.clk_status_cb()) break; return; type = gsi_readl(gsi_ctx->base + GSI_EE_n_CNTXT_TYPE_IRQ_OFFS(ee)); if (!type) break; return; GSIDBG_LOW("type 0x%x\n", type); Loading @@ -850,17 +847,6 @@ static void gsi_handle_irq(void) if (type & GSI_EE_n_CNTXT_TYPE_IRQ_GENERAL_BMSK) gsi_handle_general(ee); if (unlikely(++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(); } } } static irqreturn_t gsi_isr(int irq, void *ctxt) Loading Loading
drivers/platform/msm/gsi/gsi.c +21 −35 Original line number Diff line number Diff line Loading @@ -811,22 +811,19 @@ 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; while (1) { if (!gsi_ctx->per.clk_status_cb()) break; return; type = gsi_readl(gsi_ctx->base + GSI_EE_n_CNTXT_TYPE_IRQ_OFFS(ee)); if (!type) break; return; GSIDBG_LOW("type 0x%x\n", type); Loading @@ -850,17 +847,6 @@ static void gsi_handle_irq(void) if (type & GSI_EE_n_CNTXT_TYPE_IRQ_GENERAL_BMSK) gsi_handle_general(ee); if (unlikely(++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(); } } } static irqreturn_t gsi_isr(int irq, void *ctxt) Loading