From owner-freebsd-stable@FreeBSD.ORG Thu Jan 16 17:29:22 2014 Return-Path: Delivered-To: freebsd-stable@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 6C7AD292 for ; Thu, 16 Jan 2014 17:29:22 +0000 (UTC) Received: from mail.in-addr.com (unknown [IPv6:2001:470:8:162::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3BA9A12D4 for ; Thu, 16 Jan 2014 17:29:22 +0000 (UTC) Received: from gjp by mail.in-addr.com with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1W3qkn-000Dsb-75; Thu, 16 Jan 2014 12:29:17 -0500 Date: Thu, 16 Jan 2014 12:29:17 -0500 From: Gary Palmer To: Christian Weisgerber Subject: Re: 9->10: USB device number changes Message-ID: <20140116172917.GA5868@in-addr.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 17:29:22 -0000 On Sat, Jan 04, 2014 at 04:41:43PM +0000, Christian Weisgerber wrote: > If you're going from FreeBSD 9 to 10, the attach order of USB devices > may change. > > FreeBSD 9's GENERIC kernel has various USB drivers compiled in. On > 10, only a few core drivers remain in GENERIC and drivers for other > devices are loaded dynamically as kernel modules by devd(8). As a > side effect, the attach order and thus the numbering may change. > > Specifically, I have four ucom(4) adapters on a machine, a mix of > three uplcom(4) and one uftdi(4) device. On FreeBSD 9, these used > to attach in the USB address order. On 10, the uplcoms all attach > first, in address order, and the uftdi afterwards, so the corresponding > devices cuaU[0-3] have been reordered. > > I just thought I'd mention it. Can we wire down USB buses and devices like we can with CAM? e.g. for CAM hint.scbus.0.at="ahcich0" hint.scbus.1.at="ahcich1" hint.ada.0.at="scbus0" hint.ada.1.at="scbus1" (etc) If not, it would be nice to have that feature. Gary