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:
parent
5bd3c9d556
commit
87e0d2b9ac
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user