[RFC] device probe order
Alexander Aring
alex.aring at gmail.com
Wed Dec 23 08:35:51 PST 2015
On Wed, Dec 23, 2015 at 07:10:58PM +0300, Peter Mamonov wrote:
> Dear All,
>
> I've ported an UHCI driver from the u-boot to the barebox (WIP). To
> interoperate with the EHCI driver, the UHCI driver should be probed
> ater the EHCI driver. Both drivers are binded via the device tree
> mechanism. How can i achieve the correct probe order?
>
Normally this should done by returning "-EPROBE_DEFER" inside the probe
function. There was some RFC last years for supporting EPROBE_DEFER [0]
and it seems these are mainline.
However you need some bool which indicates that the EHCI driver is probed.
int uhci_probe(foobar) {
if (!indicate_ehci_is_probed(foobar)
return -EPROBE_DEFER;
}
- Alex
[0] http://barebox.infradead.narkive.com/ZWIXXU0R/patch-v2-0-6-introduce-deferred-probing
More information about the barebox
mailing list