summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-03-08 11:52:03 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-03-08 11:52:03 +0000
commit192e3a27076d32a4c5c9c4b99eff2766075879dd (patch)
tree95e6706f22dd26da807580ad75d4bf4191e60f0b /sys
parent6646b46dc6bedd471d4ca28771300ae85b0b8d50 (diff)
Recognize super speed devices, note that this driver sill uses
non-superspeed hub descriptors. This is the minimal change I came with to be able to properly attach and use USB 3.0 devices attached to a xHCI root hub, uhub(4) clearly needs some love.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/uhub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index e656b07898b..a0b1df5f204 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.64 2014/03/07 18:57:23 mpi Exp $ */
+/* $OpenBSD: uhub.c,v 1.65 2014/03/08 11:52:02 mpi Exp $ */
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
@@ -439,7 +439,9 @@ uhub_explore(struct usbd_device *dev)
}
/* Figure out device speed */
- if (status & UPS_HIGH_SPEED)
+ if (status & UPS_SUPER_SPEED)
+ speed = USB_SPEED_SUPER;
+ else if (status & UPS_HIGH_SPEED)
speed = USB_SPEED_HIGH;
else if (status & UPS_LOW_SPEED)
speed = USB_SPEED_LOW;