Hi Dan,

Thanks for your advice. :)
Did you know Chinese?

My system was an embeded system using Admtek 5120P CPU, and running on linux
kernel 2.4.18
the CPU built-in a USB controler.

form you advice, I found the code at printer.c. but I don't have any idea
abut usblp_bulk even the error code.
did you have any idea why my system happen this error?

PS:
Since I am a freshman on linux system, is there any document describe usb
driver and usblp driver?

Thanks for your kindly help.


-Sam



----- Original Message ----- 
From: "Daniel Blueman" <[EMAIL PROTECTED]>
To: "sam" <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2003 10:55 PM
Subject: Re: [linux-usb-devel] [2.6.0-test2-bk5] OHCI USB printing causing
system lockup...


> Ni hao ma Sam,
>
> The return code of -145 corresponds in the USB subsystem to:
>
> $ find /usr/src/linux -name *.h -exec grep -h 'define.*145' {} \;
> [snip]
> #define ETIMEDOUT       145     /* Connection timed out */
>
> >From this code:
>
> /*
>  * URB callback.
>  */
>
> static void usblp_bulk(struct urb *urb)
> {
> struct usblp *usblp = urb->context;
>
> if (!usblp || !usblp->dev || !usblp->used)
> return;
>
> if (urb->status)
> warn("usblp%d: nonzero read/write bulk status received: %d",
> usblp->minor, urb->status);
>
> wake_up_interruptible(&usblp->wait);
> }
>
> What kernel version are you running, and what USB hardware do you have?
>
> Dan
>
> PS You'll get far better response posting to the linux-usb mailing list
>
> > Dear Sir,
> >
> > I found a Messages from google to know you,
> > as the subject, I met a problem while I try to print
> > a job to usb printer.  I got a error message after the
> > job printing a while and the system lockup.
> >
> > The error message was:
> >
> >  " printer.c: usblp0: nonzero read/write bulk status received: -145 "
> >
> > >from your message, you seem met the same problem,  did you have
> > any idea about this error ?
> >
> > any advice ia appreciate.
> >
> > Sam J.C. Lu
> >
> >
> >
> >
> >
>
> -- 
> Daniel J Blueman
>
> NEU F�R ALLE - GMX MediaCenter - f�r Fotos, Musik, Dateien...
> Fotoalbum, File Sharing, MMS, Multimedia-Gru�, GMX FotoService
>
> Jetzt kostenlos anmelden unter http://www.gmx.net
>
> +++ GMX - die erste Adresse f�r Mail, Message, More! +++



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to