From owner-freebsd-usb@FreeBSD.ORG Wed Aug 6 06:19:59 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96042905 for ; Wed, 6 Aug 2014 06:19:59 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5AC47260B for ; Wed, 6 Aug 2014 06:19:59 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 352D91FE027; Wed, 6 Aug 2014 08:19:56 +0200 (CEST) Message-ID: <53E1C928.8040409@selasky.org> Date: Wed, 06 Aug 2014 08:20:24 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Peter Losher , freebsd-usb@freebsd.org Subject: Re: Setting USB probe priority... References: <336D77E7-2845-4F62-9627-75D442CCAB14@isc.org> In-Reply-To: <336D77E7-2845-4F62-9627-75D442CCAB14@isc.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Dan Mahoney X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2014 06:19:59 -0000 On 08/06/14 01:50, Peter Losher wrote: > (please include my and Dan's email in any responses as we normally don't lurk on the USB mailing list) > > So @work we use serial->USB TTY MUX's to handle our serial console needs, and at some sites we have a need that is greater than a single 16 port device (the max you can get). The problem is that with two of these 16 port USB devices is that sometimes during a reboot that the "second" device gets probed first and so the first 16 and second 16 /dev/ttyU* blocks swap around... which of course plays havoc with any symlinks we have to the devices in rtty or conserver. :( > > Is there any way to tell the USB code to always select a certain device first? I assume this has been a issue with USB storage devices so this shouldn't be a new issue. And I tried searching for a answer on the web to no avail. > > Ideas? Hi, USB enumerates in sequential order, but sometimes devices might not be ready to enumerate, and then a port is skipped. Does the device have a serial number? usbconfig -d X.Y dump_device_desc |grep iSerial If yes, this can be filtered by a devd rule, when the device attaches, and then you can switch the serial number to create any symbolic links. --HPS