From owner-svn-src-head@FreeBSD.ORG Wed Apr 22 00:06:04 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCA4E106566B; Wed, 22 Apr 2009 00:06:04 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 286848FC19; Wed, 22 Apr 2009 00:06:03 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id n3LNpMX5059073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 Apr 2009 01:51:22 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id n3LNpBvb049554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Apr 2009 01:51:11 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id n3LNpBAh033273; Wed, 22 Apr 2009 01:51:11 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id n3LNpAle033272; Wed, 22 Apr 2009 01:51:10 +0200 (CEST) (envelope-from ticso) Date: Wed, 22 Apr 2009 01:51:10 +0200 From: Bernd Walter To: Rafal Jaworowski Message-ID: <20090421235110.GI31402@cicely7.cicely.de> References: <20090421220138.f6e7b4d4.stas@FreeBSD.org> <20090421.121805.-1954387331.imp@bsdimp.com> <20090421223502.507f0dcf.stas@FreeBSD.org> <20090421.123847.70203894.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.002, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: stas@FreeBSD.org, svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, "M.Warner Losh" Subject: Re: svn commit: r191322 - in head/sys: arm/conf dev/iicbus X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 00:06:05 -0000 On Tue, Apr 21, 2009 at 08:58:42PM +0200, Rafal Jaworowski wrote: > On 2009-04-21, at 20:38, M. Warner Losh wrote: > >In message: <20090421223502.507f0dcf.stas@FreeBSD.org> > > > >Consider one kernel. Two different boards. Different RTC chips on > >each of these boards. Hints loaded from the boot loader. Now, on one > >board the ds1672 is used, on the other a ds163x is used. How does the > >right driver get attached in that case? > > If these boards are different, they are supposed to have different > dedicated hints; doesn't this solve your concerns? For the same reason we have hint.ed.0 hint.le.0 ... And not just hint.eth.0 Each driver needs its own private hints. You can have a kernel compiled with multiple rtc to support a board family and just tune the hint for a specific board. This is embedded stuff, people might want to use board X and add another rtc. e.g. the BWCT board has a DS1672, but also an iic header. For whatever reason someone might want another rtc and simply adds one to the iic header. Say that this person has multiple boards in use - some with the special rtc and the others not. You can as easily add a DS1672 to a normal PC if the onboard rtc isn't sufficient for your need. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.