From: Luke J. <lu...@jo...> - 2004-04-28 22:38:19
|
It might have been that problem - I didn't get a chance to check because I resolved the problem before I read this. I simply upgraded my kernel to 2.6.5 and now printing works. Probably still needed that "hpoj-0.91-kernel26.patch" that I applied to hpoj-0.91. So basically 2.6.3 & 2.6.4 spit out blank pages (because of usblp.c?). I won't be staying subscribed to this mailing list so could those who are please pass on this kernel versioning advice to others who come across this blank-pages problem... or maybe it could be posted on the hpoj website? Thanks! -Joz On Tuesday April 27 2004 11:23 pm, you wrote: > Hello, > > check the usblp.c, to see if it has the bug described below... > > Printing started to work with Mandrake 10 2.6.3-4mdk kernel after applying > following usblp.c patch from > http://www.ussg.iu.edu/hypermail/linux/kernel/0403.0/1190.html > > === > --- drivers/usb/class/usblp.c.orig 2004-03-05 17:09:00.412189056 +0000 > +++ drivers/usb/class/usblp.c 2004-03-05 17:10:30.121551160 +0000 > @@ -609,8 +609,10 @@ static ssize_t usblp_write(struct file * > while (writecount < count) { > if (!usblp->wcomplete) { > barrier(); > - if (file->f_flags & O_NONBLOCK) > + if (file->f_flags & O_NONBLOCK) { > + writecount += transfer_length; > return writecount ? writecount : -EAGAIN; > + } > > timeout = USBLP_WRITE_TIMEOUT; > add_wait_queue(&usblp->wait, &wait); > @@ -670,7 +672,8 @@ static ssize_t usblp_write(struct file * > > usblp->writeurb->transfer_buffer_length = transfer_length; > > - if (copy_from_user(usblp->writeurb->transfer_buffer, buffer + > writecount, transfer_length)) { > + if (copy_from_user(usblp->writeurb->transfer_buffer, > + buffer + writecount, transfer_length)) { > up(&usblp->sem); > return writecount ? writecount : -EFAULT; > } > ==== |