Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2010 08:48:33 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        "Jayachandran C." <jchandra@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r212550 - head/sys/mips/rmi
Message-ID:  <201009130848.34144.jhb@freebsd.org>
In-Reply-To: <4C8E144C.3030405@freebsd.org>
References:  <201009131147.o8DBla8x095589@svn.freebsd.org> <4C8E144C.3030405@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, September 13, 2010 8:08:44 am Andriy Gapon wrote:
> on 13/09/2010 14:47 Jayachandran C. said the following:
> > Author: jchandra
> > Date: Mon Sep 13 11:47:35 2010
> > New Revision: 212550
> > URL: http://svn.freebsd.org/changeset/base/212550
> > 
> > Log:
> >   bus_add_child method is needed now.
> 
> Just a note: bus_add_child method needs to be defined only if it's actually
> used, i.e. a device/bus has at least one child that calls BUS_ADD_CHILD.

And that generally only happens in device_identify() methods of drivers that 
live on the bus.  If a bus can self-enumerate devices (e.g. PCI) it should use 
device_add_child() directly.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009130848.34144.jhb>