]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: pci: Allow scan bridge child devices before relocation
authorBin Meng <bmeng.cn@gmail.com>
Mon, 27 Jul 2015 07:33:39 +0000 (00:33 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Aug 2015 14:42:38 +0000 (08:42 -0600)
On some platforms pci devices behind bridge need to be probed (eg:
a pci uart on recent x86 chipset) before relocation. Remove such
limitation so that dm pci can be used before relocation.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c

index c7d93f92d6f7259682591ebb8cb05d9622f01a40..6262f352c999206cdf8681560e48b60a67718f6a 100644 (file)
@@ -641,10 +641,6 @@ static int pci_uclass_post_probe(struct udevice *bus)
 {
        int ret;
 
-       /* Don't scan buses before relocation */
-       if (!(gd->flags & GD_FLG_RELOC))
-               return 0;
-
        debug("%s: probing bus %d\n", __func__, bus->seq);
        ret = pci_bind_bus_devices(bus);
        if (ret)