Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Use the control (not data) interface descriptor ...



details:   https://anonhg.NetBSD.org/src/rev/643f06b3860e
branches:  trunk
changeset: 757744:643f06b3860e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 20 14:18:13 2010 +0000

description:
Use the control (not data) interface descriptor when looking at the
control interface endpoints! (from Anon Ymous)

diffstat:

 sys/dev/usb/umodem_common.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 339c37f43ab9 -r 643f06b3860e sys/dev/usb/umodem_common.c
--- a/sys/dev/usb/umodem_common.c       Mon Sep 20 11:49:48 2010 +0000
+++ b/sys/dev/usb/umodem_common.c       Mon Sep 20 14:18:13 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umodem_common.c,v 1.18 2010/06/27 10:41:26 kardel Exp $        */
+/*     $NetBSD: umodem_common.c,v 1.19 2010/09/20 14:18:13 christos Exp $      */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.18 2010/06/27 10:41:26 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.19 2010/09/20 14:18:13 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -218,6 +218,7 @@
        sc->sc_ctl_notify = -1;
        sc->sc_notify_pipe = NULL;
 
+       id = usbd_get_interface_descriptor(sc->sc_ctl_iface);
        for (i = 0; i < id->bNumEndpoints; i++) {
                ed = usbd_interface2endpoint_descriptor(sc->sc_ctl_iface, i);
                if (ed == NULL)



Home | Main Index | Thread Index | Old Index