svn commit: r306473 - head/sys/dev/fdt

John Baldwin jhb at freebsd.org
Fri Sep 30 17:35:42 UTC 2016


On Thursday, September 29, 2016 11:38:13 PM Justin Hibbits wrote:
> If I remember correctly, newbus will throw an error if you try to create
> two devices with the same number. Applying the logic of using the
> cell-index property for all device nodes, if two sub buses from simplebus
> have the same set of child nodes, with the same cell-index property values,
> one set of children would error and not attach.  Of course this change is
> only for simplebus, so shouldn't have too big an impact.

Yes, new-bus doesn't let you add devices with the same unit.  We used to
force the unit of PCI bridges/buses but removed all that to better cope
with multi-domain systems.  I think in general it's best to use wildcard
units outside of something like hints.

-- 
John Baldwin


More information about the svn-src-all mailing list