Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb SS device detection needs more work. #if 0 previ...
details: https://anonhg.NetBSD.org/src/rev/08683e64d92f
branches: trunk
changeset: 331510:08683e64d92f
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Aug 13 06:26:32 2014 +0000
description:
SS device detection needs more work. #if 0 previous attempt for now.
PR/49106: panic: ehci_open: bad device speed 4
diffstat:
sys/dev/usb/uhub.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 42ddb42e350a -r 08683e64d92f sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c Wed Aug 13 05:56:03 2014 +0000
+++ b/sys/dev/usb/uhub.c Wed Aug 13 06:26:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhub.c,v 1.125 2014/08/12 13:36:40 skrll Exp $ */
+/* $NetBSD: uhub.c,v 1.126 2014/08/13 06:26:32 skrll Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
/*
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.125 2014/08/12 13:36:40 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.126 2014/08/13 06:26:32 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -540,9 +540,12 @@
}
/* Figure out device speed */
+#if 0
if (status & UPS_SUPER_SPEED)
speed = USB_SPEED_SUPER;
- else if (status & UPS_HIGH_SPEED)
+ else
+#endif
+ if (status & UPS_HIGH_SPEED)
speed = USB_SPEED_HIGH;
else if (status & UPS_LOW_SPEED)
speed = USB_SPEED_LOW;
Home |
Main Index |
Thread Index |
Old Index