From: Tony Lindgren <tony@atomide.com> To: linux-omap@vger.kernel.org Cc: Nishanth Menon <nm@ti.com>, Paul Walmsley <paul@pwsan.com>, Lokesh Vutla <lokeshvutla@ti.com>, Tero Kristo <t-kristo@ti.com>, Marc Zyngier <marc.zyngier@arm.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/6] ARM: OMAP3: Remove legacy IRQ for PRM Date: Tue, 29 Aug 2017 10:29:57 -0700 [thread overview] Message-ID: <20170829173001.20358-3-tony@atomide.com> (raw) In-Reply-To: <20170829173001.20358-1-tony@atomide.com> We have this coming from device tree and legacy booting is no longer needed. Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> --- arch/arm/mach-omap2/prm3xxx.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -704,12 +704,18 @@ static int omap3xxx_prm_late_init(void) omap3430_pre_es3_1_reconfigure_io_chain; np = of_find_matching_node(NULL, omap3_prm_dt_match_table); - if (np) { - irq_num = of_irq_get(np, 0); - if (irq_num > 0) - omap3_prcm_irq_setup.irq = irq_num; + if (!np) { + pr_err("PRM: no device tree node for interrupt?\n"); + + return -ENODEV; } + irq_num = of_irq_get(np, 0); + if (irq_num == -EPROBE_DEFER) + return irq_num; + + omap3_prcm_irq_setup.irq = irq_num; + omap3xxx_prm_enable_io_wakeup(); return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup); -- 2.14.1
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/6] ARM: OMAP3: Remove legacy IRQ for PRM Date: Tue, 29 Aug 2017 10:29:57 -0700 [thread overview] Message-ID: <20170829173001.20358-3-tony@atomide.com> (raw) In-Reply-To: <20170829173001.20358-1-tony@atomide.com> We have this coming from device tree and legacy booting is no longer needed. Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> --- arch/arm/mach-omap2/prm3xxx.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -704,12 +704,18 @@ static int omap3xxx_prm_late_init(void) omap3430_pre_es3_1_reconfigure_io_chain; np = of_find_matching_node(NULL, omap3_prm_dt_match_table); - if (np) { - irq_num = of_irq_get(np, 0); - if (irq_num > 0) - omap3_prcm_irq_setup.irq = irq_num; + if (!np) { + pr_err("PRM: no device tree node for interrupt?\n"); + + return -ENODEV; } + irq_num = of_irq_get(np, 0); + if (irq_num == -EPROBE_DEFER) + return irq_num; + + omap3_prcm_irq_setup.irq = irq_num; + omap3xxx_prm_enable_io_wakeup(); return omap_prcm_register_chain_handler(&omap3_prcm_irq_setup); -- 2.14.1
next prev parent reply other threads:[~2017-08-29 17:29 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-08-29 17:29 [PATCH 0/6] Drop omap hwmod legacy resources Tony Lindgren 2017-08-29 17:29 ` Tony Lindgren 2017-08-29 17:29 ` [PATCH 1/6] ARM: OMAP2+: Populate legacy resources for dma and smartreflex Tony Lindgren 2017-08-29 17:29 ` Tony Lindgren 2017-08-29 17:29 ` Tony Lindgren [this message] 2017-08-29 17:29 ` [PATCH 2/6] ARM: OMAP3: Remove legacy IRQ for PRM Tony Lindgren 2017-08-29 17:29 ` [PATCH 3/6] ARM: OMAP4: " Tony Lindgren 2017-08-29 17:29 ` Tony Lindgren 2017-08-29 17:29 ` [PATCH 4/6] ARM: OMAP2+: Drop omap_hwmod_irq_info Tony Lindgren 2017-08-29 17:29 ` Tony Lindgren 2017-08-29 17:30 ` [PATCH 5/6] ARM: OMAP2+: Drop omap_hwmod_dma_info Tony Lindgren 2017-08-29 17:30 ` Tony Lindgren 2017-08-29 17:30 ` [PATCH 6/6] ARM: OMAP2+: Drop legacy struct omap_hwmod_addr_space Tony Lindgren 2017-08-29 17:30 ` Tony Lindgren 2017-08-30 15:41 ` Tony Lindgren 2017-08-30 15:41 ` Tony Lindgren
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170829173001.20358-3-tony@atomide.com \ --to=tony@atomide.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=lokeshvutla@ti.com \ --cc=marc.zyngier@arm.com \ --cc=nm@ti.com \ --cc=paul@pwsan.com \ --cc=t-kristo@ti.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.