All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Ordering PCI device probes
@ 2018-08-19  0:05 Aaron Williams
  2018-08-19  8:58 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Williams @ 2018-08-19  0:05 UTC (permalink / raw)
  To: u-boot

Hi all,

I am trying to port our OcteonTX Linux NAND driver to U-Boot and am running 
into an issue with ordering. We have a bch engine which consists of a pf and a 
vf and uses SRIOV to activate the vf.

The problem is that the nand device is probed before the BCH engine is probed 
and the NAND driver depends on the BCH driver.

In Linux, this is handled by having the NAND driver probe function return 
EPROBE_DEFER which causes the probe function to be called later after all of 
the other probe functions have been called. U-Boot does not use EPROBE_DEFER 
so is there some other way I can do this or otherwise change the ordering of 
the probes?

-Aaron

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Ordering PCI device probes
  2018-08-19  0:05 [U-Boot] Ordering PCI device probes Aaron Williams
@ 2018-08-19  8:58 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2018-08-19  8:58 UTC (permalink / raw)
  To: u-boot

On 08/19/2018 02:05 AM, Aaron Williams wrote:
> Hi all,
> 
> I am trying to port our OcteonTX Linux NAND driver to U-Boot and am running 
> into an issue with ordering. We have a bch engine which consists of a pf and a 
> vf and uses SRIOV to activate the vf.
> 
> The problem is that the nand device is probed before the BCH engine is probed 
> and the NAND driver depends on the BCH driver.
> 
> In Linux, this is handled by having the NAND driver probe function return 
> EPROBE_DEFER which causes the probe function to be called later after all of 
> the other probe functions have been called. U-Boot does not use EPROBE_DEFER 
> so is there some other way I can do this or otherwise change the ordering of 
> the probes?

Shouldn't such dependency between blocks be described in DT, maybe with
a phandle or somesuch ?

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-19  8:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-19  0:05 [U-Boot] Ordering PCI device probes Aaron Williams
2018-08-19  8:58 ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.