Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2020 13:14:32 +0200
From:      Dmitry Salychev <dsl@mcusim.org>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org
Subject:   Re: Can we hook a device as device to two different parent devices?
Message-ID:  <20200605111432.GA30107@ds-laptop>
In-Reply-To: <20200604215300.GH4213@funkthat.com>
References:  <CAAO%2BANOB8m6OjRY-FOVVHQi3vdcCEnHdjE2s3xoHdh0rjaTruQ@mail.gmail.com> <c1b611bc-4fa7-7975-da3f-e7c68a26e92b@FreeBSD.org> <CANCZdfpF%2BaiZYLRHo-NOizZcAuBz%2BXhsqYvXTazHrMVz_%2Bh=3w@mail.gmail.com> <CAAO%2BANOQfY3AUy5o9BP22O5Uxp83crAXNhFrOeMcmsStkk4Y-w@mail.gmail.com> <20200604215300.GH4213@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi John-Mark,

> I think you're confused.  The device tree is a strict tree.  This
> means that a device can have ONLY one parent.  The multiple parents
> is simply saying that a device can attach at different points in the
> tree...
Does it mean that there is some kind of priorities in probes for
different buses to attach a device to?

Let's say that there are IIC and SPI buses for a device (like Ethernet
switch) which can be used to control it.

Which one will be probed first? Is there a way to re-define it?

Regards,
Dmitry



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