From 386803d2877b69b7f53b95f607a0b27af81226e5 Mon Sep 17 00:00:00 2001 From: mpi Date: Sat, 8 Mar 2014 11:49:19 +0000 Subject: Attach to host controller drivers advertising USB 3.0 support and assign the correct speed. This has no effect for the moment since there is no such driver in our tree, but something tells me it might change soon. --- sys/dev/usb/usb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/usb/usb.c') diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index b208723dad3..d15ecf68f2d 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb.c,v 1.93 2013/12/06 21:03:05 deraadt Exp $ */ +/* $OpenBSD: usb.c,v 1.94 2014/03/08 11:49:19 mpi Exp $ */ /* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */ /* @@ -140,8 +140,7 @@ const struct cfattach usb_ca = { int usb_match(struct device *parent, void *match, void *aux) { - DPRINTF(("usbd_match\n")); - return (UMATCH_GENERIC); + return (1); } void @@ -153,8 +152,6 @@ usb_attach(struct device *parent, struct device *self, void *aux) int usbrev; int speed; - DPRINTF(("usbd_attach\n")); - if (usb_nbuses == 0) { rw_init(&usbpalock, "usbpalock"); TAILQ_INIT(&usb_abort_tasks); @@ -179,6 +176,9 @@ usb_attach(struct device *parent, struct device *self, void *aux) case USBREV_2_0: speed = USB_SPEED_HIGH; break; + case USBREV_3_0: + speed = USB_SPEED_SUPER; + break; default: printf(", not supported\n"); sc->sc_bus->dying = 1; -- cgit v1.2.3-59-g8ed1b