fix gpio interrupt-cells property on AM335x
[openwrt/openwrt.git] / target / linux / omap / patches-3.12 / 800-ARM_OMAP2plus_irq_AM33XX_add_missing_register_check.patch
1 From 0bebda684857f76548ea48c8886785198701d8d3 Mon Sep 17 00:00:00 2001
2 From: Markus Pargmann <mpa@pengutronix.de>
3 Date: Thu, 17 Oct 2013 07:18:38 +0000
4 Subject: ARM: OMAP2+: irq, AM33XX add missing register check
5
6 am33xx has a INTC_PENDING_IRQ3 register that is not checked for pending
7 interrupts. This patch adds AM33XX to the ifdef of SOCs that have to
8 check this register.
9
10 Cc: stable@vger.kernel.org
11 Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
12 Signed-off-by: Tony Lindgren <tony@atomide.com>
13 ---
14 diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
15 index 3926f37..e022a86 100644
16 --- a/arch/arm/mach-omap2/irq.c
17 +++ b/arch/arm/mach-omap2/irq.c
18 @@ -233,7 +233,7 @@ static inline void omap_intc_handle_irq(void __iomem *base_addr, struct pt_regs
19 goto out;
20
21 irqnr = readl_relaxed(base_addr + 0xd8);
22 -#ifdef CONFIG_SOC_TI81XX
23 +#if IS_ENABLED(CONFIG_SOC_TI81XX) || IS_ENABLED(CONFIG_SOC_AM33XX)
24 if (irqnr)
25 goto out;
26 irqnr = readl_relaxed(base_addr + 0xf8);
27 --
28 cgit v0.9.2