diff options
author | Xiaowei Bao <xiaowei.bao@nxp.com> | 2018-10-26 09:56:25 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2019-01-17 13:17:33 -0800 |
commit | 87e0d2b9ac6e82dd2cb5164f029396a44fbbbe82 (patch) | |
tree | 8698a40ff782ff110527d01c0bef99774fb2df64 | |
parent | 5bd3c9d5565a40e3494867fa501e45be53d5e49a (diff) | |
download | u-boot-87e0d2b9ac6e82dd2cb5164f029396a44fbbbe82.tar.gz u-boot-87e0d2b9ac6e82dd2cb5164f029396a44fbbbe82.tar.xz u-boot-87e0d2b9ac6e82dd2cb5164f029396a44fbbbe82.zip |
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 <xiaowei.bao@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r-- | drivers/pci/pcie_layerscape.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |