Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ppc32: i8259 PIC should not be initialized if PCI is not configured

Trying to initialize the i8259 PIC will not work if CONFIG_PCI is not
enabled. The kernel hangs if the initialization is tried.

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Kumar Gala and committed by
Linus Torvalds
6cf2b3fc f9e4a005

+2
+2
arch/ppc/platforms/85xx/mpc85xx_cds_common.c
··· 200 200 */ 201 201 openpic_init(MPC85xx_OPENPIC_IRQ_OFFSET); 202 202 203 + #ifdef CONFIG_PCI 203 204 openpic_hookup_cascade(PIRQ0A, "82c59 cascade", i8259_irq); 204 205 205 206 for (i = 0; i < NUM_8259_INTERRUPTS; i++) 206 207 irq_desc[i].handler = &i8259_pic; 207 208 208 209 i8259_init(0); 210 + #endif 209 211 210 212 #ifdef CONFIG_CPM2 211 213 /* Setup CPM2 PIC */