Module Name: src Committed By: msaitoh Date: Mon Nov 16 14:41:44 UTC 2015
Modified Files: src/sys/dev/usb [netbsd-7]: ucom.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.107.2.1 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/ucom.c diff -u src/sys/dev/usb/ucom.c:1.107 src/sys/dev/usb/ucom.c:1.107.2.1 --- src/sys/dev/usb/ucom.c:1.107 Sun Aug 10 16:44:36 2014 +++ src/sys/dev/usb/ucom.c Mon Nov 16 14:41:44 2015 @@ -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 @@ ucom_attach(device_t parent, device_t se 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;