patch-2.2.19 linux/drivers/char/lp.c
Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/char/i810-tco.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sun Mar 25 11:37:31 2001
- Orig file:
v2.2.18/drivers/char/lp.c
- Orig date:
Sun Mar 25 11:12:56 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/char/lp.c linux/drivers/char/lp.c
@@ -307,32 +307,11 @@
/*
* NOTE: if you run with irqs you _must_ use
* `tunelp /dev/lp? -c 1' to be rasonable efficient!
+ *
+ * ..but beware that data corruption can happen that way. -Tim
*/
if (++count == LP_CHAR(minor))
- {
- if (irq_ok)
- {
- static int first_time = 1;
- /*
- * The printer is using a buggy handshake, so
- * revert to polling to not overload the
- * machine and warn the user that its printer
- * could get optimized trusting the irq. -arca
- */
- lp_table[minor].irq_missed = 1;
- if (first_time)
- {
- first_time = 0;
- printk(KERN_WARNING "lp%d: the "
- "printing could be optimized "
- "using the TRUST_IRQ flag, "
- "see the top of "
- "linux/drivers/char/lp.c\n",
- minor);
- }
- }
return 0;
- }
}
w_dtr(minor, lpchar);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)