summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-10-06 20:18:57 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-10-06 20:18:57 +0000
commit3ac68e389539d6e81454f9bef2ae4364806ffb9c (patch)
tree5cdca3b2fe847296c3608317056eca919a786f82 /sys
parentd3636e7d7218db54d7e3ec8e75e2a795d3cb4f1f (diff)
Don't force multi transaction endpoints (>1024 bytes) down to single
transactions. From NetBSD.
Diffstat (limited to 'sys')
-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)));