diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-01-18 14:43:44 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-01-18 14:43:44 +0000 |
commit | 561ec2935a3b8175a26d173c261973526731c4da (patch) | |
tree | c8610d16d5096942f2f504b7efc6db0800ec12b1 /target/linux/mpc85xx/patches/120-mpc8548_cds_i8259_noirq_init.patch | |
parent | f9887a55d2869bac4a2a1989378e0b1a836b038b (diff) |
mpc85xx: disable the i8259 irq on mpc8548cds (but leave the controller initialized) - it shares an irq with the pcie device which causes irq storms
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25037 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mpc85xx/patches/120-mpc8548_cds_i8259_noirq_init.patch')
-rw-r--r-- | target/linux/mpc85xx/patches/120-mpc8548_cds_i8259_noirq_init.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/patches/120-mpc8548_cds_i8259_noirq_init.patch b/target/linux/mpc85xx/patches/120-mpc8548_cds_i8259_noirq_init.patch new file mode 100644 index 0000000000..4d585100e6 --- /dev/null +++ b/target/linux/mpc85xx/patches/120-mpc8548_cds_i8259_noirq_init.patch @@ -0,0 +1,23 @@ +--- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c ++++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c +@@ -234,15 +234,16 @@ static int mpc85xx_cds_8259_attach(void) + return -ENODEV; + } + ++ i8259_init(cascade_node, 0); ++ of_node_put(cascade_node); ++ + cascade_irq = irq_of_parse_and_map(cascade_node, 0); + if (cascade_irq == NO_IRQ) { +- printk(KERN_ERR "Failed to map cascade interrupt\n"); ++ of_node_put(cascade_node); ++ printk(KERN_DEBUG "No interrupt for i8259 PIC\n"); + return -ENXIO; + } + +- i8259_init(cascade_node, 0); +- of_node_put(cascade_node); +- + /* + * Hook the interrupt to make sure desc->action is never NULL. + * This is required to ensure that the interrupt does not get |