Date: Sun, 2 Dec 2007 01:13:58 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 129943 for review Message-ID: <200712020113.lB21Dwtm023210@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=129943 Change 129943 by hselasky@hselasky_laptop001 on 2007/12/02 01:13:50 Remove some alignment requirements. We assume that all USB DMA hardware supports byte aligment. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#57 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#57 (text+ko) ==== @@ -403,28 +403,6 @@ } else { /* - * BSD specific requirement: - * - * In case we are transferring more than one USB frame - * consisting of up to 3 USB packets, make sure that the USB - * frame size is divisible by 8. This is supposed to - * optimize the USB Host Controller by avoiding unaligned - * data accesses! - */ - - if (parm->bufsize > xfer->max_frame_size) { - - while (xfer->max_frame_size & 7) { - if (xfer->max_packet_size == parm->hc_max_packet_size) { - /* should not happen */ - parm->err = USBD_INVAL; - goto done; - } - (xfer->max_packet_size)++; - usbd_compute_max_frame_size(xfer); - } - } - /* * if a value is specified use that else check the endpoint * descriptor */help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712020113.lB21Dwtm023210>
