Date: Fri, 15 Jul 2005 04:19:42 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb ulpt.c Message-ID: <200507150419.j6F4JgrR055520@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2005-07-15 04:19:42 UTC
FreeBSD src repository
Modified files:
sys/dev/usb ulpt.c
Log:
Don't wait for the printer to become ready before allowing the open to
succeed. There are many printers that return status over the read
channel, and if we wait for the status to become ready, then we can't
find the status automatically. Linux doesn't wait, nor does it ever
seem to really check the status in any meaningful way... If there
really is a problem, the writes to the bulk out endpoint will still
fail (like they would if the printer was ready and then ran out of
paper or became unready).
In addition, there are a number of printers being made that emulate
the 'status' byte by returning '0' always rather than '0x18'. This
fixes the EBUSY on open timeouts on those printer as well.
Reviewed by: the defining silence on usb@
Revision Changes Path
1.67 +1 -23 src/sys/dev/usb/ulpt.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507150419.j6F4JgrR055520>
