PERFORCE change 159292 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Mar 16 07:50:56 PDT 2009
http://perforce.freebsd.org/chv.cgi?CH=159292
Change 159292 by hselasky at hselasky_laptop001 on 2009/03/16 14:50:28
USB parallell port driver patch: Don't send ZLP at close.
Some printers apparently stop working at the first ZLP!
Same patch for USB scanner driver.
In other words: Revert behaviour back to USB1.
Reported by: Alexander Best
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/image/uscanner.c#5 edit
.. //depot/projects/usb/src/sys/dev/usb/serial/ulpt.c#5 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/image/uscanner.c#5 (text+ko) ====
@@ -578,7 +578,6 @@
USCANNER_IFQ_MAXLEN)) {
return (ENOMEM);
}
- usb2_fifo_set_close_zlp(fifo, 1);
}
return (0);
}
==== //depot/projects/usb/src/sys/dev/usb/serial/ulpt.c#5 (text+ko) ====
@@ -440,7 +440,6 @@
}
/* set which FIFO is opened */
sc->sc_fifo_open[USB_FIFO_TX] = fifo;
- usb2_fifo_set_close_zlp(fifo, 1);
}
sc->sc_fflags |= fflags & (FREAD | FWRITE);
return (0);
More information about the p4-projects
mailing list