On 03/18/2013 02:13 AM, Joseph Lo wrote: > Add the wake up handling for legacy irq controller, and using > IRQCHIP_MASK_ON_SUSPEND for wake irq handling. > diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c > +static int tegra_set_wake(struct irq_data *d, unsigned int enable) > +{ > + u32 irq = d->irq; > + u32 index, mask; > + > + BUG_ON(irq < FIRST_LEGACY_IRQ || > + irq >= FIRST_LEGACY_IRQ + num_ictlrs * 32); Perhaps that should be: if (irq < FIRST_LEGACY_IRQ || irq >= FIRST_LEGACY_IRQ + num_ictlrs * 32) return -EINVAL; -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html