diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2017-06-16 22:24:12 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2017-06-16 22:24:12 -0400 |
commit | 7619ca3e40babbf06b2293eea1aa37aa83315da8 (patch) | |
tree | 26b6139dbe017f8c2676cce6ea46588808479e9f | |
parent | 83d778f121264c75939c8ed364b3dd51aec5410c (diff) | |
download | longterm-queue-4.8-7619ca3e40babbf06b2293eea1aa37aa83315da8.tar.gz |
MIPS: drop Lantiq patch eventually reverted
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | queue/MIPS-Lantiq-Fix-cascaded-IRQ-setup.patch | 102 | ||||
-rw-r--r-- | queue/series | 1 |
2 files changed, 0 insertions, 103 deletions
diff --git a/queue/MIPS-Lantiq-Fix-cascaded-IRQ-setup.patch b/queue/MIPS-Lantiq-Fix-cascaded-IRQ-setup.patch deleted file mode 100644 index d689148..0000000 --- a/queue/MIPS-Lantiq-Fix-cascaded-IRQ-setup.patch +++ /dev/null @@ -1,102 +0,0 @@ -From 6c356eda225e3ee134ed4176b9ae3a76f793f4dd Mon Sep 17 00:00:00 2001 -From: Felix Fietkau <nbd@nbd.name> -Date: Thu, 19 Jan 2017 12:28:22 +0100 -Subject: [PATCH] MIPS: Lantiq: Fix cascaded IRQ setup - -commit 6c356eda225e3ee134ed4176b9ae3a76f793f4dd upstream. - -With the IRQ stack changes integrated, the XRX200 devices started -emitting a constant stream of kernel messages like this: - -[ 565.415310] Spurious IRQ: CAUSE=0x1100c300 - -This is caused by IP0 getting handled by plat_irq_dispatch() rather than -its vectored interrupt handler, which is fixed by commit de856416e714 -("MIPS: IRQ Stack: Fix erroneous jal to plat_irq_dispatch"). - -Fix plat_irq_dispatch() to handle non-vectored IPI interrupts correctly -by setting up IP2-6 as proper chained IRQ handlers and calling do_IRQ -for all MIPS CPU interrupts. - -Signed-off-by: Felix Fietkau <nbd@nbd.name> -Acked-by: John Crispin <john@phrozen.org> -Cc: linux-mips@linux-mips.org -Patchwork: https://patchwork.linux-mips.org/patch/15077/ -[james.hogan@imgtec.com: tweaked commit message] -Signed-off-by: James Hogan <james.hogan@imgtec.com> - -diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c -index 8ac0e5994ed2..0ddf3698b85d 100644 ---- a/arch/mips/lantiq/irq.c -+++ b/arch/mips/lantiq/irq.c -@@ -269,6 +269,11 @@ static void ltq_hw5_irqdispatch(void) - DEFINE_HWx_IRQDISPATCH(5) - #endif - -+static void ltq_hw_irq_handler(struct irq_desc *desc) -+{ -+ ltq_hw_irqdispatch(irq_desc_get_irq(desc) - 2); -+} -+ - #ifdef CONFIG_MIPS_MT_SMP - void __init arch_init_ipiirq(int irq, struct irqaction *action) - { -@@ -313,23 +318,19 @@ static struct irqaction irq_call = { - asmlinkage void plat_irq_dispatch(void) - { - unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; -- unsigned int i; -- -- if ((MIPS_CPU_TIMER_IRQ == 7) && (pending & CAUSEF_IP7)) { -- do_IRQ(MIPS_CPU_TIMER_IRQ); -- goto out; -- } else { -- for (i = 0; i < MAX_IM; i++) { -- if (pending & (CAUSEF_IP2 << i)) { -- ltq_hw_irqdispatch(i); -- goto out; -- } -- } -+ int irq; -+ -+ if (!pending) { -+ spurious_interrupt(); -+ return; - } -- pr_alert("Spurious IRQ: CAUSE=0x%08x\n", read_c0_status()); - --out: -- return; -+ pending >>= CAUSEB_IP; -+ while (pending) { -+ irq = fls(pending) - 1; -+ do_IRQ(MIPS_CPU_IRQ_BASE + irq); -+ pending &= ~BIT(irq); -+ } - } - - static int icu_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw) -@@ -354,11 +355,6 @@ static const struct irq_domain_ops irq_domain_ops = { - .map = icu_map, - }; - --static struct irqaction cascade = { -- .handler = no_action, -- .name = "cascade", --}; -- - int __init icu_of_init(struct device_node *node, struct device_node *parent) - { - struct device_node *eiu_node; -@@ -390,7 +386,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent) - mips_cpu_irq_init(); - - for (i = 0; i < MAX_IM; i++) -- setup_irq(i + 2, &cascade); -+ irq_set_chained_handler(i + 2, ltq_hw_irq_handler); - - if (cpu_has_vint) { - pr_info("Setting up vectored interrupts\n"); --- -2.12.0 - diff --git a/queue/series b/queue/series index 451bd73..98052ed 100644 --- a/queue/series +++ b/queue/series @@ -174,7 +174,6 @@ pwm-rockchip-State-of-PWM-clock-should-synchronize-w.patch irqchip-irq-imx-gpcv2-Fix-spinlock-initialization.patch ftrace-Fix-removing-of-second-function-probe.patch char-lack-of-bool-string-made-CONFIG_DEVPORT-always-.patch -Revert-MIPS-Lantiq-Fix-cascaded-IRQ-setup.patch kvm-fix-page-struct-leak-in-handle_vmon.patch zram-do-not-use-copy_page-with-non-page-aligned-addr.patch ftrace-Fix-function-pid-filter-on-instances.patch |