PCI: Use pcie_get_speed_cap() in PCIe failed link retraining

Rewrite a check for the maximum link speed in the Link Capabilities
register in terms of pcie_get_speed_cap().  No functional change.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/alpine.DEB.2.21.2512080348310.49654@angie.orcam.me.uk
This commit is contained in:
Maciej W. Rozycki 2025-12-08 19:24:34 +00:00 • committed by Bjorn Helgaas
commit 30a3613080