ARM: imx: irq: fix buggy usage of irq_data irq field
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 2 Dec 2014 16:05:25 +0000 (16:05 +0000)
committerOlof Johansson <olof@lixom.net>
Fri, 5 Dec 2014 07:24:48 +0000 (23:24 -0800)
commite2fd06f6be690a1a9697c0c6338843a35cbd70a3
treec91fa0f3308390d904174db5c6fdd8c3cae5173c
parent7e8f403fecd38d018a2c1868b29e9c1ef7d6fc56
ARM: imx: irq: fix buggy usage of irq_data irq field

mach-imx directly references to the irq field in
struct irq_data, and uses this to directly poke hardware register.

But irq is the *virtual* irq number, something that has nothing
to do with the actual HW irq (stored in the hwirq field). And once
we put the stacked domain code in action, the whole thing explodes,
as these two values are *very* different.

Just replacing all instances of irq with hwirq fixes the issue.

Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-imx/gpc.c