]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47ee42094c98c9ada20ee8fc7b7d3704d9f395da
treec91fa0f3308390d904174db5c6fdd8c3cae5173c
parent3a402a317c7ea1287a66564d5123ee896b4dbd1f
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