kernel: fix disable_irq() on MIPS CPU IRQs
authorFelix Fietkau <nbd@openwrt.org>
Thu, 15 Jan 2015 12:19:12 +0000 (12:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 15 Jan 2015 12:19:12 +0000 (12:19 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43973

target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch [new file with mode: 0644]
target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch [new file with mode: 0644]

diff --git a/target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch b/target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch
new file mode 100644 (file)
index 0000000..7ebbc99
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/arch/mips/kernel/irq_cpu.c
++++ b/arch/mips/kernel/irq_cpu.c
+@@ -56,6 +56,8 @@ static struct irq_chip mips_cpu_irq_cont
+       .irq_mask_ack   = mask_mips_irq,
+       .irq_unmask     = unmask_mips_irq,
+       .irq_eoi        = unmask_mips_irq,
++      .irq_disable    = mask_mips_irq,
++      .irq_enable     = unmask_mips_irq,
+ };
+ /*
+@@ -92,6 +94,8 @@ static struct irq_chip mips_mt_cpu_irq_c
+       .irq_mask_ack   = mips_mt_cpu_irq_ack,
+       .irq_unmask     = unmask_mips_irq,
+       .irq_eoi        = unmask_mips_irq,
++      .irq_disable    = mask_mips_irq,
++      .irq_enable     = unmask_mips_irq,
+ };
+ void __init mips_cpu_irq_init(void)
diff --git a/target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch b/target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch
new file mode 100644 (file)
index 0000000..7ebbc99
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/arch/mips/kernel/irq_cpu.c
++++ b/arch/mips/kernel/irq_cpu.c
+@@ -56,6 +56,8 @@ static struct irq_chip mips_cpu_irq_cont
+       .irq_mask_ack   = mask_mips_irq,
+       .irq_unmask     = unmask_mips_irq,
+       .irq_eoi        = unmask_mips_irq,
++      .irq_disable    = mask_mips_irq,
++      .irq_enable     = unmask_mips_irq,
+ };
+ /*
+@@ -92,6 +94,8 @@ static struct irq_chip mips_mt_cpu_irq_c
+       .irq_mask_ack   = mips_mt_cpu_irq_ack,
+       .irq_unmask     = unmask_mips_irq,
+       .irq_eoi        = unmask_mips_irq,
++      .irq_disable    = mask_mips_irq,
++      .irq_enable     = unmask_mips_irq,
+ };
+ void __init mips_cpu_irq_init(void)