[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMbhsRQ7JwzQDmFYf7frwfBvvtkUqdENkmrxtMLRvb-PFbixiw@mail.gmail.com>
Date: Wed, 2 Nov 2011 11:13:59 -0700
From: Colin Cross <ccross@...roid.com>
To: Peter De Schrijver <pdeschrijver@...dia.com>
Cc: Olof Johansson <olof@...om.net>,
Stephen Warren <swarren@...dia.com>,
Russell King <linux@....linux.org.uk>,
Gary King <gking@...dia.com>, linux-tegra@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arm/tegra: add support for tegra30 interrupts
On Wed, Nov 2, 2011 at 8:38 AM, Peter De Schrijver
<pdeschrijver@...dia.com> wrote:
> Tegra30 has 1 extra legacy interrupt controller. Use the GIC ITLinesNumber
> field to determine how many interrupt controllers we have and initialize
> appropriately. Also make room for the extra tegra30 interrupts by moving
> the GPIO IRQ base. This shouldn't affect existing code as it determines the
> correct IRQ number for GPIOs using TEGRA_GPIO_TO_IRQ()
>
> Signed-off-by: Peter De Schrijver <pdeschrijver@...dia.com>
> ---
> arch/arm/mach-tegra/include/mach/iomap.h | 3 +++
> arch/arm/mach-tegra/include/mach/irqs.h | 14 +++++++-------
> arch/arm/mach-tegra/irq.c | 15 ++++++++++-----
> 3 files changed, 20 insertions(+), 12 deletions(-)
>
<snip>
> diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c
> index 8ad82af..aad335b 100644
> --- a/arch/arm/mach-tegra/irq.c
> +++ b/arch/arm/mach-tegra/irq.c
<snip>
> @@ -112,8 +114,12 @@ static int tegra_retrigger(struct irq_data *d)
> void __init tegra_init_irq(void)
> {
> int i;
> + void __iomem *distbase;
> +
> + distbase = IO_ADDRESS(TEGRA_ARM_INT_DIST_BASE);
> + num_ictlrs = readl_relaxed(distbase + GIC_DIST_CTR) & 0x1f;
Check num_ictlrs against ARRAY_SIZE(ictlr_reg_base)
Other than that:
Acked-by: Colin Cross <ccross@...roid.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists