ARM: OMAP4+: Correct Wakeup-gen code to use physical irq number
authorSricharan R <r.sricharan@ti.com>
Tue, 3 Dec 2013 10:27:24 +0000 (15:57 +0530)
committerSricharan R <r.sricharan@ti.com>
Wed, 5 Feb 2014 14:38:34 +0000 (20:08 +0530)
commit1cc4b1a92c0a5057045d1cb8a135ea6385eafd3d
tree182a18117fe8ae9a823f0fb31038f12e8de0b9e0
parent96ca848ef7ea1be7e92d1cceb34ef3aa86053828
ARM: OMAP4+: Correct Wakeup-gen code to use physical irq number

The wakeup gen mask/unmask callback uses the irq element of the
irq_data to setup. The irq is the linux virtual irq number and
is same as the hardware irq number only when the parent irqchip
is setup as a legacy domain. When it is used as a linear domain,
the virtual irqs are allocated dynamically and wakeup gen code
cannot rely on these numbers to access the irq registers. Instead
use the hwirq element of the irq_data which represent the physical
irq number.

Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-omap2/omap-wakeupgen.c