Date: Wed, 06 Oct 1999 18:18:16 -0600 From: Warner Losh <imp@village.org> To: Doug Rabson <dfr@nlsystems.com> Cc: new-bus@FreeBSD.ORG, dfr@FreeBSD.ORG Subject: Re: Question on loading buses Message-ID: <199910070018.SAA07555@harmony.village.org> In-Reply-To: Your message of "Thu, 07 Oct 1999 00:42:11 BST." <Pine.BSF.4.10.9910070039460.571-100000@salmon.nlsystems.com> References: <Pine.BSF.4.10.9910070039460.571-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.10.9910070039460.571-100000@salmon.nlsystems.com> Doug Rabson writes: : Currently all that happens when a driver is loaded is that the : BUS_DRIVER_ADDED method of all instances of the parent bus is called. : There is a generic implementation of BUS_DRIVER_ADDED which calls : device_probe_and_attach() for any unmatched device instances but the : parent probably doesn't have this in its method table. Probably : bus_generic_driver_added() should call DEVICE_IDENTIFY for the new driver : too. You mean the following? Index: subr_bus.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/kern/subr_bus.c,v retrieving revision 1.42 diff -u -r1.42 subr_bus.c --- subr_bus.c 1999/09/10 21:11:23 1.42 +++ subr_bus.c 1999/10/07 00:17:46 @@ -1928,6 +1928,7 @@ child; child = TAILQ_NEXT(child, link)) if (child->state == DS_NOTPRESENT) device_probe_and_attach(child); + DEVICE_IDENTRIFY(dev); } int To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910070018.SAA07555>