Skip to contentSkip to conversation

Ordering PCI device probes

U-Boot Aaron Williams 2 participants 2 messages Aug 19, 2018

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Aaron Williams

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.

Quoted 8 lines

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 ?

Signature · 2 lines
Best regards,
Marek Vasut