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

Jimmie Farmer (calvin@malchick.com)
Mon, 22 Sep 1997 08:31:06 -0700 (PDT)


On Sun, 21 Sep 1997, Tim Waugh wrote:

> 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.

Yes, they did, but with this patch I once again could not print.
I think my printer is posessed. =-\

Sincerely,
Jimmie Farmer

> 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");
> }
>

Jimmie Farmer | It is by the fortune of God that, in this country,
Guitar For Hire | we have three benefits: freedom of speech, freedom
calvin@malchick.com | of thought, and the wisdom never to use either.
http://www.malchick.com/ | -- Mark Twain