Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/dev/usb Pull up following revision(s) (requested by j...



details:   https://anonhg.NetBSD.org/src/rev/f75f7d3840b5
branches:  netbsd-7
changeset: 799706:f75f7d3840b5
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Nov 16 14:41:44 2015 +0000

description:
Pull up following revision(s) (requested by joerg in ticket #1031):
        sys/dev/usb/ucom.c: revision 1.110
Add the port number to the device properties to make it easier to relate
a specific ucom instance with the physical port of multi-port devices
like the FTDI 4232.

diffstat:

 sys/dev/usb/ucom.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 6c253dc066c3 -r f75f7d3840b5 sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Mon Nov 16 14:40:41 2015 +0000
+++ b/sys/dev/usb/ucom.c        Mon Nov 16 14:41:44 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.107 2014/08/10 16:44:36 tls Exp $   */
+/*     $NetBSD: ucom.c,v 1.107.2.1 2015/11/16 14:41:44 msaitoh Exp $   */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.107 2014/08/10 16:44:36 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.107.2.1 2015/11/16 14:41:44 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -219,6 +219,8 @@
                aprint_normal(": %s", uca->info);
        aprint_normal("\n");
 
+       prop_dictionary_set_int32(device_properties(self), "port", uca->portno);
+
        sc->sc_dev = self;
        sc->sc_udev = uca->device;
        sc->sc_iface = uca->iface;



Home | Main Index | Thread Index | Old Index