PERFORCE change 151663 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Oct 21 14:49:27 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=151663
Change 151663 by hselasky at hselasky_laptop001 on 2008/10/21 14:48:26
Add support for writing Zero Length Packets.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_dev.c#36 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_dev.c#36 (text+ko) ====
@@ -1878,8 +1878,8 @@
/* start write transfer, if not already started */
(f->methods->f_start_write) (f);
}
- while (uio->uio_resid > 0) {
-
+ /* we allow writing zero length data */
+ do {
if (f->fs_ep_max == 0) {
USB_IF_DEQUEUE(&f->free_q, m);
} else {
@@ -1931,7 +1931,7 @@
USB_IF_ENQUEUE(&f->used_q, m);
(f->methods->f_start_write) (f);
}
- }
+ } while (uio->uio_resid > 0);
done:
mtx_unlock(f->priv_mtx);
More information about the p4-projects
mailing list