On Sat, May 29 2004, Vojtech Pavlik wrote:
> On Sat, May 29, 2004 at 02:51:48PM -0400, Alan Stern wrote:
> > On Sat, 29 May 2004, Jens Axboe wrote:
> >
> > > > > Both 2.6.7-rc1 and BK current spit out a bunch of:
> > > > >
> > > > > drivers/usb/class/usblp.c: usblp1: nonzero read/write bulk status received:
> > > > > -2
> > > > > drivers/usb/class/usblp.c: usblp1: error -2 reading from printer
> > > > > drivers/usb/class/usblp.c: usblp1: error -115 reading from printer
> > > > > drivers/usb/class/usblp.c: usblp1: error -115 reading from printer
> > > > > ...
> > > > >
> > > > > (about ~80 of that last line) but work for me.
> >
> > > Sorry wasn't quite clear - the above messages are with 2.6.7-rc1 and
> > > current bk with your patch backed out. Current bk with the patch reports
> > > only the timeouts I originally listed.
> >
> > Okay, I feel better.
> >
> > It looks like those errors you see are caused by a bug in the usblp
> > driver. The patch below ought to help. Vojtech, should this be merged?
>
> It looks obvious. So yes. Does it help?
>
> > Alan Stern
> >
> >
> > --- usb-2.6/drivers/usb/class/usblp.c Fri May 28 17:09:17 2004
> > +++ usb-2.6/drivers/usb/class/usblp.c Sat May 29 14:25:51 2004
> > @@ -761,6 +761,7 @@
> > usblp->minor, usblp->readurb->status);
> > usblp->readurb->dev = usblp->dev;
> > usblp->readcount = 0;
> > + usblp->rcomplete = 0;
> > if (usb_submit_urb(usblp->readurb, GFP_KERNEL) < 0)
> > dbg("error submitting urb");
> > count = -EIO;
Works for me, BK current booted with that patch applied. The only usb
errors I get now are:
drivers/usb/class/usblp.c: usblp1: nonzero read/write bulk status received: -2
drivers/usb/class/usblp.c: usblp1: error -2 reading from printer
--
Jens Axboe
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel