pci: Avoid auto-config when chain loading
authorSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 15:12:56 +0000 (09:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:40:16 +0000 (17:40 +0800)
commitf1f4438218d4d042fd36431dd5ff382c0a9f7a2c
treebdfdeec5b284b8917b6d5f5c83a6a72b89c450c6
parent526aabec2496834450f9dab06e4f62bdc0696d33
pci: Avoid auto-config when chain loading

When U-Boot is not the first-stage bootloader we don't want to
re-configure the PCI devices, since this has already been done. Add a
check to avoid this.

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