Re: lp broken? (fixed in 2.1.56 for me)

Tim Waugh (tim@cyberelk.demon.co.uk)
Sun, 21 Sep 1997 11:27:22 +0100 (BST)


On Sat, 20 Sep 1997, Jimmie Farmer wrote:

> I may not be describing this well, but what I mean is if you have
> your printer already turned on, and reboot the computer, normally during
> the boot sequence the printer will start making noises like it was just
> turned on too.

Ah, yes, you're quite right. Try this patch and let me know if the noises
come back.

Tim.
*/

--- linux/drivers/char/lp.c~ Sun Sep 21 11:14:53 1997
+++ linux/drivers/char/lp.c Sun Sep 21 11:23:54 1997
@@ -643,6 +643,10 @@
lp_interrupt, PARPORT_DEV_TRAN,
(void *) &lp_table[count]);
lp_table[count].flags |= LP_EXIST;
+ init_waitqueue (&lp_table[count].lp_wait_q);
+ lp_parport_claim (count);
+ lp_reset (count);
+ lp_parport_release (count);
printk(KERN_INFO "lp%d: using %s (%s).\n",
count, pb->name, (pb->irq == PARPORT_IRQ_NONE)?"polling":"interrupt-driven");
}