linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqdomain: print a warning if domains contain IRQ 0
@ 2012-04-18 13:40 Linus Walleij
  2012-04-18 22:23 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2012-04-18 13:40 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Grant Likely; +Cc: linux-kernel, Linus Walleij

From: Linus Walleij <linus.walleij@linaro.org>

Some of the clients using IRQ domains from the ARM VIC
(arch/arm/common/vic.c) don't know that their (hardware) IRQ 0
is silently ignored by the IRQ core, they will just notice
that they're not getting this IRQ anymore. So print a warning
if a domain contains IRQ 0 (NO_IRQ) so we get some noise about
it atleast.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 kernel/irq/irqdomain.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 0e0ba5f..1444454 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -136,8 +136,10 @@ struct irq_domain *irq_domain_add_legacy(struct device_node *of_node,
 		int hwirq = first_hwirq + i;
 
 		/* IRQ0 gets ignored */
-		if (!irq)
+		if (!irq) {
+			pr_warn("trying to register IRQ 0 (NO_IRQ) in an irq  domain\n");
 			continue;
+		}
 
 		/* Legacy flags are left to default at this point,
 		 * one can then use irq_create_mapping() to
-- 
1.7.9.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-27 18:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-18 13:40 [PATCH] irqdomain: print a warning if domains contain IRQ 0 Linus Walleij
2012-04-18 22:23 ` Benjamin Herrenschmidt
2012-04-18 22:32   ` Linus Walleij
2012-04-19 18:29   ` Grant Likely
2012-04-20  6:38     ` Linus Walleij
2012-04-27 18:56       ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).