static struct irqaction jz4740_cascade_action = {
.handler = jz4740_cascade,
- .name = "JZ4740 cascade interrupt"
+ .name = "JZ4740 cascade interrupt",
+ .flags = IRQF_DISABLED,
};
void __init arch_init_irq(void)
{
unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM;
if (pending & STATUSF_IP2)
- jz4740_cascade(2, NULL);
+ do_IRQ(2);
else if(pending & STATUSF_IP3)
do_IRQ(3);
else
{
jz_intc_saved = readl(jz_intc_base + JZ_REG_INTC_MASK);
writel(~jz_intc_wakeup, jz_intc_base + JZ_REG_INTC_SET_MASK);
+ writel(jz_intc_wakeup, jz_intc_base + JZ_REG_INTC_CLEAR_MASK);
}
void jz4740_intc_resume(void)
{
writel(~jz_intc_saved, jz_intc_base + JZ_REG_INTC_CLEAR_MASK);
+ writel(jz_intc_saved, jz_intc_base + JZ_REG_INTC_SET_MASK);
}
#ifdef CONFIG_DEBUG_FS