[PATCH v4 0/2] PCI: altera: Retrain link in rootport mode only

From: Ley Foon Tan
Date: Thu Aug 25 2016 - 22:26:12 EST


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