* [PATCH] ARM: OMAP2+: Fix PMU interrupt definitions
@ 2012-09-24 21:32 Jon Hunter
2012-09-24 21:38 ` Paul Walmsley
0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2012-09-24 21:32 UTC (permalink / raw)
To: linux-arm-kernel
Commit 7d7e1eb (ARM: OMAP2+: Prepare for irqs.h removal) and commit ec2c082
(ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ) updated the way
interrupts for OMAP2/3 devices are defined in the HWMOD data structures to
being an index plus a fixed offset (defined by OMAP_INTC_START). The definition
of the PMU interrupts on OMAP2/3 devices is missing the OMAP_INTC_START offset
and so this is causing the allocation of PMU interrupts to fail on OMAP2/3
devices. So add the offset to fix this.
This is patch is based upon the Tony's master branch for OMAP.
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 2 +-
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
index 35dcdb6..bd9220e 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
@@ -219,7 +219,7 @@ struct omap_hwmod omap2xxx_l4_wkup_hwmod = {
/* MPU */
static struct omap_hwmod_irq_info omap2xxx_mpu_irqs[] = {
- { .name = "pmu", .irq = 3 },
+ { .name = "pmu", .irq = 3 + OMAP_INTC_START },
{ .irq = -1 }
};
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 2857772..b4028fa 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -94,7 +94,7 @@ static struct omap_hwmod omap3xxx_l4_sec_hwmod = {
/* MPU */
static struct omap_hwmod_irq_info omap3xxx_mpu_irqs[] = {
- { .name = "pmu", .irq = 3 },
+ { .name = "pmu", .irq = 3 + OMAP_INTC_START },
{ .irq = -1 }
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: OMAP2+: Fix PMU interrupt definitions
2012-09-24 21:32 [PATCH] ARM: OMAP2+: Fix PMU interrupt definitions Jon Hunter
@ 2012-09-24 21:38 ` Paul Walmsley
0 siblings, 0 replies; 2+ messages in thread
From: Paul Walmsley @ 2012-09-24 21:38 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 24 Sep 2012, Jon Hunter wrote:
> Commit 7d7e1eb (ARM: OMAP2+: Prepare for irqs.h removal) and commit ec2c082
> (ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ) updated the way
> interrupts for OMAP2/3 devices are defined in the HWMOD data structures to
> being an index plus a fixed offset (defined by OMAP_INTC_START). The definition
> of the PMU interrupts on OMAP2/3 devices is missing the OMAP_INTC_START offset
> and so this is causing the allocation of PMU interrupts to fail on OMAP2/3
> devices. So add the offset to fix this.
>
> This is patch is based upon the Tony's master branch for OMAP.
>
> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Thanks, looks like I missed that when the patch was rebased. Queued into
devel-late-fixes.
- Paul
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-24 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 21:32 [PATCH] ARM: OMAP2+: Fix PMU interrupt definitions Jon Hunter
2012-09-24 21:38 ` Paul Walmsley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox