[PARPORT] lp patch


Andrea Arcangeli (arcangeli@mbox.queen.it)
Sun, 24 May 1998 20:52:04 +0200 (CEST)


I forgot this in my latest lp diff. Nobody noticed a stall since it' s
needed in rare conditions not easily reproducible. It' s against my latest
diff (that should be in pre-104 just now).

--- linux/drivers/char/lp.c 1998/05/17 11:51:36 1.44
+++ linux/drivers/char/lp.c 1998/05/24 17:31:39
@@ -168,6 +168,7 @@
         register unsigned long int timeslip = (jiffies - dev->time);
         if ((timeslip > dev->timeslice) && (dev->port->waithead != NULL)) {
                 lp_parport_release(minor);
+ lp_table[minor].irq_missed = 1;
                 schedule ();
                 lp_parport_claim(minor);
         } else

BTW, today one guy said me that he applyed pre-104 and lp continue to
stall for him (since he said me that, I supposed my lp latest diff is just
in pre-104), so frustrated I find out an HP Deskjet 600 (the precise one
of the guy) to test hard the workaround with the buggy hardware myself and
here works fine as expected (and just reported from the helpful
alpha-testers). The old lp stall under the same conditions with the same
printer. I have no idea of what could be wrong for him but sure his
problem is not the HP hardware bug I workarounded.

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