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.146 (requested by toshii in ti...



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

description:
Pullup rev 1.146 (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/ohci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 24785067be5d -r 11dc9eb4943a sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Mon Mar 15 04:37:08 2004 +0000
+++ b/sys/dev/usb/ohci.c        Mon Mar 15 04:37:19 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.123.2.2 2003/10/10 17:58:41 tron Exp $      */
+/*     $NetBSD: ohci.c,v 1.123.2.3 2004/03/15 04:37:19 jmc Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $       */
 
 /*
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.123.2.2 2003/10/10 17:58:41 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.123.2.3 2004/03/15 04:37:19 jmc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2551,7 +2551,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