cvs commit: src/sys/dev/usb ulpt.c

Warner Losh imp at FreeBSD.org
Fri Jul 15 04:19:43 GMT 2005


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


More information about the cvs-src mailing list