Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/usb Pullup rev 1.177 (requested by toshii in ti...



details:   https://anonhg.NetBSD.org/src/rev/4a8a4d50f9be
branches:  netbsd-1-6
changeset: 531124:4a8a4d50f9be
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Mar 15 04:37:29 2004 +0000

description:
Pullup rev 1.177 (requested by toshii in ticket #1599)

Use the correct wValue to get hub desriptors.
Also, make wValue checks of root hub codes less strict.

diffstat:

 sys/dev/usb/uhci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 11dc9eb4943a -r 4a8a4d50f9be sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Mon Mar 15 04:37:19 2004 +0000
+++ b/sys/dev/usb/uhci.c        Mon Mar 15 04:37:29 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.159.2.1 2003/01/26 09:37:05 jmc Exp $       */
+/*     $NetBSD: uhci.c,v 1.159.2.2 2004/03/15 04:37:29 jmc Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.159.2.1 2003/01/26 09:37:05 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.159.2.2 2004/03/15 04:37:29 jmc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3280,7 +3280,7 @@
                }
                break;
        case C(UR_GET_DESCRIPTOR, UT_READ_CLASS_DEVICE):
-               if (value != 0) {
+               if ((value & 0xff) != 0) {
                        err = USBD_IOERROR;
                        goto ret;
                }



Home | Main Index | Thread Index | Old Index