[PARPORT] disable_irq()


Andrea Arcangeli (arcangeli@mbox.queen.it)
Fri, 23 Jan 1998 00:57:22 +0100 (CET)


The new (at least for i386) irq code show that lp don' t disable_irq and
warn us.

This patch should fix the problem, it' s against parport-diff-980111-tim.

Andrea[s] Arcangeli

--- linux/drivers/char/lp.c 1998/01/22 23:48:21 1.1
+++ linux/drivers/char/lp.c 1998/01/22 23:48:55
@@ -304,6 +304,7 @@
                                         }
                                         current->timeout = jiffies + LP_TIMEOUT_INTERRUPT;
                                         interruptible_sleep_on(&lp->dev->wait_q);
+ disable_irq(lp->dev->port->irq);
                                         w_ctr(minor, LP_PSELECP | LP_PINITP);
                                         sti();
                                         if (lp_check_status(minor))

-- 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 Wed 30 Dec 1998 - 10:17:21 EST