Date: Tue, 21 Oct 2008 14:49:26 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 151663 for review Message-ID: <200810211449.m9LEnQbo016326@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=151663 Change 151663 by hselasky@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810211449.m9LEnQbo016326>