[PARPORT] Re: [patch] i386 longstanding irqs may be mistaken with spurious irqs


Mark Lord (mlord@pobox.com)
Thu, 19 Aug 1999 08:48:57 -0400


Andrea Arcangeli wrote:
..
> The below one is the fix sent me by Egbert in his original email.
>
> ---------- Forwarded message ----------
> *** parport_pc.c.org Wed Jun 2 01:43:43 1999
> --- parport_pc.c Mon Aug 16 02:42:55 1999
> ***************
> *** 612,617 ****
> --- 612,623 ----
> int irqs, i;
>
> sti();
> + /*
> + * Hack to catch spurious interrupts.
> + */
> + irqs = probe_irq_on();
> + probe_irq_off(irqs);
> +
> irqs = probe_irq_on();
..

Essentially the same thing we did in the IDE driver:

ide-probe.c:
...
        if (!HWIF(drive)->irq) { /* already got an IRQ? */
                probe_irq_off(probe_irq_on()); /* clear dangling irqs */
                irqs = probe_irq_on(); /* start monitoring irqs */
                OUT_BYTE(drive->ctl,IDE_CONTROL_REG); /* enable device irq */
        }
...

-- 
Mark Lord
Real-Time Remedies Inc.
mlord@pobox.com

-- To unsubscribe, send mail to: linux-parport-request@torque.net -- -- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Thu 19 Aug 1999 - 09:08:52 EDT