From: Xiaowei Bao Date: Fri, 26 Oct 2018 01:56:25 +0000 (+0800) Subject: pci: layerscape: Do not scan when PEX work in EP mode X-Git-Tag: v2025.01-rc5-pxa1908~3170^2~4 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=87e0d2b9ac6e82dd2cb5164f029396a44fbbbe82;p=u-boot.git pci: layerscape: Do not scan when PEX work in EP mode Don't scan the bus when the PEX work in EP mode. Signed-off-by: Xiaowei Bao Reviewed-by: York Sun --- diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 17cba46ebe..db1375a1ce 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -225,6 +225,9 @@ static int ls_pcie_addr_valid(struct ls_pcie *pcie, pci_dev_t bdf) { struct udevice *bus = pcie->bus; + if (pcie->mode == PCI_HEADER_TYPE_NORMAL) + return -ENODEV; + if (!pcie->enabled) return -ENXIO;