summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-11-01 18:21:08 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-11-01 18:21:08 +0000
commit6d837bda73e3b342890c33027b82095d13f213c5 (patch)
tree1a30785425fec18e475bd66b66da0a9e311f0b75 /sys/dev/usb
parent1758cbfae183613d77bb098cab7824ecd629ad55 (diff)
Use the correct default MaxPacketSize for Full Speed devices and make them
work with xhci(4).
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/xhci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c
index 53145f967c9..204bc3e190a 100644
--- a/sys/dev/usb/xhci.c
+++ b/sys/dev/usb/xhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xhci.c,v 1.33 2014/10/31 23:11:48 mpi Exp $ */
+/* $OpenBSD: xhci.c,v 1.34 2014/11/01 18:21:07 mpi Exp $ */
/*
* Copyright (c) 2014 Martin Pieuchot
@@ -1049,12 +1049,12 @@ xhci_pipe_init(struct xhci_softc *sc, struct usbd_pipe *pipe, uint32_t port,
case USB_SPEED_LOW:
ival= 3;
speed = XHCI_SPEED_LOW;
- mps = USB_MAX_IPACKET;
+ mps = 8;
break;
case USB_SPEED_FULL:
ival = 3;
speed = XHCI_SPEED_FULL;
- mps = 64;
+ mps = 8;
break;
case USB_SPEED_HIGH:
ival = min(3, ed->bInterval);