[PATCH 5.1 100/122] PCI: Factor out pcie_retrain_link() function