diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-08 11:49:20 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-08 11:49:20 +0000 |
commit | 6646b46dc6bedd471d4ca28771300ae85b0b8d50 (patch) | |
tree | 9e39c75b5fa942de67e2f88a61ae54f2dcfd969d /sys | |
parent | 916cea9e9f283dd3c1f1d9fe64b5255d1a20c0f9 (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/usb.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |