Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 2.6] vr41xx: fix spurious IRQ problem
@ 2005-08-01 15:35 Yoichi Yuasa
  2005-08-01 15:40 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Yoichi Yuasa @ 2005-08-01 15:35 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yuasa, linux-mips

Hi Ralf,

This patch has fixed spurious IRQ problem about vr41xx.
Please apply this patch.

Yoichi

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>

diff -urN -X dontdiff a-orig/arch/mips/vr41xx/common/irq.c a/arch/mips/vr41xx/common/irq.c
--- a-orig/arch/mips/vr41xx/common/irq.c	2005-07-12 01:04:42.000000000 +0900
+++ a/arch/mips/vr41xx/common/irq.c	2005-07-31 21:07:17.000000000 +0900
@@ -62,6 +62,7 @@
 asmlinkage void irq_dispatch(unsigned int irq, struct pt_regs *regs)
 {
 	irq_cascade_t *cascade;
+	irq_desc_t *desc;
 
 	if (irq >= NR_IRQS) {
 		atomic_inc(&irq_err_count);
@@ -70,11 +71,15 @@
 
 	cascade = irq_cascade + irq;
 	if (cascade->get_irq != NULL) {
+		unsigned int source_irq = irq;
+		desc = irq_desc + source_irq;
+		desc->handler->ack(source_irq);
 		irq = cascade->get_irq(irq, regs);
 		if (irq < 0)
 			atomic_inc(&irq_err_count);
 		else
 			irq_dispatch(irq, regs);
+		desc->handler->end(source_irq);
 	} else
 		do_IRQ(irq, regs);
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2.6] vr41xx: fix spurious IRQ problem
  2005-08-01 15:35 [PATCH 2.6] vr41xx: fix spurious IRQ problem Yoichi Yuasa
@ 2005-08-01 15:40 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-08-01 15:40 UTC (permalink / raw)
  To: Yoichi Yuasa; +Cc: linux-mips

On Tue, Aug 02, 2005 at 12:35:38AM +0900, Yoichi Yuasa wrote:

> This patch has fixed spurious IRQ problem about vr41xx.
> Please apply this patch.

Applied,

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-01 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 15:35 [PATCH 2.6] vr41xx: fix spurious IRQ problem Yoichi Yuasa
2005-08-01 15:40 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox