Altera PCIe IP can be configured as rootport or device and they might have same vendor ID. It will cause the system hang issue if Altera PCIe is in endpoint mode and work with other PCIe rootport that from other vendors. This series of patch rework configs accessors and move retrain function from _FIXUP to altera_pcie_host_init(). History: v2: change to check PCIe type is PCI_EXP_TYPE_ROOT_PORT v3: Move retrain function to before pci_scan_root_bus and remove _FIXUP v4: Split patch to 2 patches Ley Foon Tan (2): PCI: altera: Rework configs accessors PCI: altera: Move retrain from _FIXUP to altera_pcie_host_init() drivers/pci/host/pcie-altera.c | 215 +++++++++++++++++++++++++---------------- 1 file changed, 132 insertions(+), 83 deletions(-) -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html