]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
PCI: altera: Move retrain from fixup to altera_pcie_host_init()
authorLey Foon Tan <lftan@altera.com>
Fri, 26 Aug 2016 01:47:25 +0000 (09:47 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 12 Sep 2016 21:49:13 +0000 (16:49 -0500)
commitce4f1c7ad490aa7129bde5632d6e53943f8a866c
tree983786b7b3a1a332c0d20497f5cb23ff07ba10f0
parent31fc0ad47e2e0b8417616aa0f1ddcc67edf1e109
PCI: altera: Move retrain from fixup to altera_pcie_host_init()

Previously we used a PCI early fixup to initiate a link retrain on Altera
devices.  But Altera PCIe IP can be configured as either a Root Port or an
Endpoint, and they might have same vendor ID, so the fixup would be run for
both.

We only want to initiate a link retrain for Altera Root Port devices, not
for Endpoints, so move the link retrain functionality from the fixup to
altera_pcie_host_init().

[bhelgaas: changelog]
Signed-off-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c