diff options
| author | mrg <mrg@NetBSD.org> | 2013-11-10 03:38:58 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2013-11-10 03:38:58 +0000 |
| commit | c0a6b937c80ff9ef646f248f9750d1711b665d8a (patch) | |
| tree | 617763837ac7995fe5ef4e2f38dbc5a84086b410 /sys/dev | |
| parent | a0412f51441762d2d00c328a4ee05f7c8f2771b9 (diff) | |
add a default case in xhci_init_slot().
ok jakllsch.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/xhci.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 417c2ac3dda..312be81fe5e 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: xhci.c,v 1.7 2013/11/08 03:12:17 christos Exp $ */ +/* $NetBSD: xhci.c,v 1.8 2013/11/10 03:38:58 mrg Exp $ */ /* * Copyright (c) 2013 Jonathan A. Kollasch @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.7 2013/11/08 03:12:17 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.8 2013/11/10 03:38:58 mrg Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1851,6 +1851,10 @@ xhci_init_slot(struct xhci_softc * const sc, uint32_t slot, int depth, xspeed = 4; mps = USB_3_MAX_CTRL_PACKET; break; + default: + device_printf(sc->sc_dev, "%s: impossible speed: %x", + __func__, speed); + return USBD_INVAL; } xs = &sc->sc_slots[slot]; |
