LF-1044 PCI: imx: use the none hard-wired port in ep rc system
Make sure to use the none hard-wired port in the i.MX PCIe EP RC system Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
c5726388aa
commit
57081b7847
|
@ -62,6 +62,7 @@ static int imx_pcie_ep_probe(struct pci_dev *pdev,
|
|||
|
||||
/* Use the first none-hard-wired port as ep */
|
||||
while ((np = of_find_node_by_type(np, "pci"))) {
|
||||
hard_wired = 0;
|
||||
if (!of_device_is_available(np))
|
||||
continue;
|
||||
if (of_property_read_u32(np, "hard-wired", &hard_wired)) {
|
||||
|
|
Loading…
Reference in New Issue