From owner-freebsd-arch@FreeBSD.ORG Sat Feb 18 16:22:17 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD421106566B; Sat, 18 Feb 2012 16:22:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id C903E8FC0C; Sat, 18 Feb 2012 16:22:16 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.208.111] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 243371014; Sat, 18 Feb 2012 17:22:14 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 18 Feb 2012 17:20:27 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201202181720.27135.hselasky@c2i.net> Cc: Kostik Belousov , Adrian Chadd , freebsd-arch@freebsd.org, Robert Millan Subject: Re: Exclude USB drivers from main kernel image? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 16:22:18 -0000 On Saturday 18 February 2012 14:07:18 Robert Millan wrote: > Hi, > > If I recall correctly from the /etc/devd/usb.conf discussion, decision > was taken not to exclude USB drivers from main kernel image (and leave > it to devd to auto-load them) because of timing in the 9.0 release > cycle. > > Now that 9.0 is released, would it make sense to do this change in > HEAD and make the kernel image about ~290 kiBs smaller? Attached patch > does this for all USB drivers that can be handled by devd (except ukbd > and umass for obvious reasons). > > Note that a very similar change has already been tested for several > months in Debian GNU/kFreeBSD kernels, with no observable ill effects. Hi, The /etc/devd/usb.conf is regularly updated, though not automatically. It should auto-load most kind of devices. Only additional case that comes to mind is that USB serial console will not be active until devd has executed, if that is enabled. Your patch looks OK. Adding ARCH @ Instead of commenting out, I would just remove those lines. --HPS