linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pseries: don't die if unknown/missing interrupt controller property
@ 2007-07-02  0:49 Sonny Rao
  2007-07-05  2:35 ` Sonny Rao
  2007-07-05 13:37 ` Olof Johansson
  0 siblings, 2 replies; 5+ messages in thread
From: Sonny Rao @ 2007-07-02  0:49 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: paulus, miltonm

The pseries platform does not have a default function for init_IRQ and
does not install one if it doesn't find or doesn't recognize an
interrupt controller in the device tree.  Currently, the kernel dies
when it tries to call the NULL init_IRQ() function.  Clean that up.

Signed-off-by: Sonny Rao <sonny@burdell.org>

--- kernel/arch/powerpc/platforms/pseries/setup.c~orig	2007-06-26 16:23:38.000000000 -0500
+++ kernel/arch/powerpc/platforms/pseries/setup.c	2007-06-26 19:09:53.000000000 -0500
@@ -274,6 +274,12 @@ static void pseries_lpar_enable_pmcs(voi
 		get_lppaca()->pmcregs_in_use = 1;
 }
 
+static void no_irq_init(void)
+{
+	printk(KERN_ERR "no_irq_init: failed to recognize"
+	       " interrupt-controller\n");
+}
+
 static void __init pseries_discover_pic(void)
 {
 	struct device_node *np;
@@ -296,8 +302,6 @@ static void __init pseries_discover_pic(
 			return;
 		}
 	}
-	printk(KERN_ERR "pSeries_discover_pic: failed to recognize"
-	       " interrupt-controller\n");
 }
 
 static void __init pSeries_setup_arch(void)
@@ -594,4 +598,5 @@ define_machine(pseries) {
 	.check_legacy_ioport	= pSeries_check_legacy_ioport,
 	.system_reset_exception = pSeries_system_reset_exception,
 	.machine_check_exception = pSeries_machine_check_exception,
+	.init_IRQ		= no_irq_init,  
 };

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

end of thread, other threads:[~2007-07-09 17:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02  0:49 [PATCH] pseries: don't die if unknown/missing interrupt controller property Sonny Rao
2007-07-05  2:35 ` Sonny Rao
2007-07-05 13:37 ` Olof Johansson
2007-07-06  9:16   ` Sonny Rao
2007-07-09 17:31     ` [PATCH] [POWERPC] check for NULL ppc_md.init_IRQ() before calling Sonny Rao

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).