]> git.baikalelectronics.ru Git - uboot.git/commit
pci: sandbox: Probe PCI emulation devices when used
authorSimon Glass <sjg@chromium.org>
Sat, 31 Aug 2019 23:59:32 +0000 (17:59 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:41 +0000 (13:57 +0800)
commit2a895260f49a14d7eeeea97cf213fed1f1f9ee3b
treeca2ab0d1f9c1daa20acde33787fdc9a102616c90
parente3c12354fae2a7b447f60a6ff6a44de53c2dc699
pci: sandbox: Probe PCI emulation devices when used

At present PCI emulation devices are not probed before use, since they
used to be children of the device that used them, and children cannot be
probed before their parents.

Now that PCI emulation devices are attached to the root node, we can
simply probe them, and avoid using the internal function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: rebase the patch against u-boot-x86/next to get it applied cleanly]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-emul-uclass.c