summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2008-10-06 20:18:56 +0000
committermglocker <mglocker@openbsd.org>2008-10-06 20:18:56 +0000
commita1941f05c1d293f6b11bc9ecc73f7d7df6d1bcc9 (patch)
treef271520bf1a1ed76c8480ed924c85615f941a3de
parentUnconditionally compile idt_vec_xxx functions. (diff)
downloadwireguard-openbsd-a1941f05c1d293f6b11bc9ecc73f7d7df6d1bcc9.tar.xz
wireguard-openbsd-a1941f05c1d293f6b11bc9ecc73f7d7df6d1bcc9.zip
Don't force multi transaction endpoints (>1024 bytes) down to single
transactions. From NetBSD.
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index e2641a1b0cf..618ed31d024 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.92 2008/09/15 13:44:09 mglocker Exp $ */
+/* $OpenBSD: ehci.c,v 1.93 2008/10/06 20:18:56 mglocker Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -3833,9 +3833,7 @@ ehci_device_isoc_start(usbd_xfer_handle xfer)
k = (UE_GET_DIR(epipe->pipe.endpoint->edesc->bEndpointAddress))
? 1 : 0;
- j = UE_GET_SIZE(
- UGETW(epipe->pipe.endpoint->edesc->wMaxPacketSize));
-
+ j = UGETW(epipe->pipe.endpoint->edesc->wMaxPacketSize);
itd->itd.itd_bufr[1] |= htole32(EHCI_ITD_SET_DIR(k) |
EHCI_ITD_SET_MAXPKT(UE_GET_SIZE(j)));