[PATCH] ARM: imx: irq: fix buggy usage of irq_data irq field

Fabio Estevam festevam at gmail.com
Mon Dec 1 09:14:18 PST 2014


On Mon, Dec 1, 2014 at 2:25 PM, Marc Zyngier <marc.zyngier at arm.com> wrote:
> 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.
>
> Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>

Tested-by: Fabio Estevam <fabio.estevam at freescale.com>



More information about the linux-arm-kernel mailing list