1
0
Fork 0

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
Richard Zhu 2020-03-09 10:57:13 +08:00
parent c5726388aa
commit 57081b7847
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {