[PARPORT] lp patch


Andrea Arcangeli (arcangeli@mbox.queen.it)
Fri, 8 May 1998 21:08:45 +0200 (CEST)


I noticed that this patch improves the lp parport sharing. While lp is
sharing the port with other pardevice it must work as polled.

This force lp to do that better, it' s against 2.1.100.

--- linux/drivers/char/lp.c 1998/05/08 18:50:36 1.32
+++ linux/drivers/char/lp.c 1998/05/08 18:56:14
@@ -178,8 +178,8 @@
                 status = r_str (minor);
                 if (LP_READY(minor, status))
                         break;
- if (!LP_POLLED(minor) || ++count == LP_CHAR(minor) ||
- signal_pending(current))
+ if ((!LP_POLLED(minor) && !LP_PREEMPTED(minor)) ||
+ ++count == LP_CHAR(minor) || signal_pending(current))
                         return 0;
         }
 

Andrea[s] Arcangeli

-- 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:43 EST