Commit df189d9ba3f8fd1bc67e3c0c3c4ace16cd065ee1

Authored by Bin Meng
Committed by Simon Glass
1 parent e22b1a5494

dm: pci: Allow scan bridge child devices before relocation

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>

Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff

drivers/pci/pci-uclass.c
... ... @@ -641,10 +641,6 @@
641 641 {
642 642 int ret;
643 643  
644   - /* Don't scan buses before relocation */
645   - if (!(gd->flags & GD_FLG_RELOC))
646   - return 0;
647   -
648 644 debug("%s: probing bus %d\n", __func__, bus->seq);
649 645 ret = pci_bind_bus_devices(bus);
650 646 if (ret)