Commit 9bf69094 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Revert "MIPS: Lantiq: Fix cascaded IRQ setup"

This reverts commit b576c583 which is
commit 6c356eda upstream.

It shouldn't have been included in a stable release.
Reported-by: default avatarAmit Pundir <amit.pundir@linaro.org>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: John Crispin <john@phrozen.org>
Cc: James Hogan <james.hogan@imgtec.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1cb293ab
...@@ -269,11 +269,6 @@ static void ltq_hw5_irqdispatch(void) ...@@ -269,11 +269,6 @@ static void ltq_hw5_irqdispatch(void)
DEFINE_HWx_IRQDISPATCH(5) DEFINE_HWx_IRQDISPATCH(5)
#endif #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 #ifdef CONFIG_MIPS_MT_SMP
void __init arch_init_ipiirq(int irq, struct irqaction *action) void __init arch_init_ipiirq(int irq, struct irqaction *action)
{ {
...@@ -318,19 +313,23 @@ static struct irqaction irq_call = { ...@@ -318,19 +313,23 @@ static struct irqaction irq_call = {
asmlinkage void plat_irq_dispatch(void) asmlinkage void plat_irq_dispatch(void)
{ {
unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM;
int irq; unsigned int i;
if (!pending) { if ((MIPS_CPU_TIMER_IRQ == 7) && (pending & CAUSEF_IP7)) {
spurious_interrupt(); do_IRQ(MIPS_CPU_TIMER_IRQ);
return; goto out;
} else {
for (i = 0; i < MAX_IM; i++) {
if (pending & (CAUSEF_IP2 << i)) {
ltq_hw_irqdispatch(i);
goto out;
}
} }
pending >>= CAUSEB_IP;
while (pending) {
irq = fls(pending) - 1;
do_IRQ(MIPS_CPU_IRQ_BASE + irq);
pending &= ~BIT(irq);
} }
pr_alert("Spurious IRQ: CAUSE=0x%08x\n", read_c0_status());
out:
return;
} }
static int icu_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw) static int icu_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
...@@ -355,6 +354,11 @@ static const struct irq_domain_ops irq_domain_ops = { ...@@ -355,6 +354,11 @@ static const struct irq_domain_ops irq_domain_ops = {
.map = icu_map, .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) int __init icu_of_init(struct device_node *node, struct device_node *parent)
{ {
struct device_node *eiu_node; struct device_node *eiu_node;
...@@ -386,7 +390,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent) ...@@ -386,7 +390,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent)
mips_cpu_irq_init(); mips_cpu_irq_init();
for (i = 0; i < MAX_IM; i++) for (i = 0; i < MAX_IM; i++)
irq_set_chained_handler(i + 2, ltq_hw_irq_handler); setup_irq(i + 2, &cascade);
if (cpu_has_vint) { if (cpu_has_vint) {
pr_info("Setting up vectored interrupts\n"); pr_info("Setting up vectored interrupts\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment