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>
This commit is contained in:
Xiaowei Bao 2018-10-26 09:56:25 +08:00 committed by York Sun
parent 5bd3c9d556
commit 87e0d2b9ac

View File

@ -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;