[PATCH V4 2/9] ARM: tegra: irq: add wake up handling
Stephen Warren
swarren at wwwdotorg.org
Tue Mar 19 12:55:38 EDT 2013
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;
More information about the linux-arm-kernel
mailing list