summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie/aspm.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@orcam.me.uk>2023-06-11 20:19:53 +0300
committerBjorn Helgaas <bhelgaas@google.com>2023-06-20 18:58:53 +0300
commit680e9c47a2293bcc6a67a6f13f3b23d4c456885b (patch)
tree8b1d935d9aa4958b68acfccee32fa6aaaf1d8075 /drivers/pci/pcie/aspm.c
parent37edd87eb621a96d33ee4eefe4b54cfc5a7e03df (diff)
downloadlinux-680e9c47a2293bcc6a67a6f13f3b23d4c456885b.tar.xz
PCI: Add support for polling DLLLA to pcie_retrain_link()
Let the caller of pcie_retrain_link() specify whether they want to use the LT bit or the DLLLA bit of the Link Status Register to determine if link training has completed. It is up to the caller to verify whether the use of the DLLLA bit, the implementation of which is optional, is valid for the device requested. Link: https://lore.kernel.org/r/alpine.DEB.2.21.2306110310540.64925@angie.orcam.me.uk Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie/aspm.c')
-rw-r--r--drivers/pci/pcie/aspm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 0c5d392dc793..99b8badddea5 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -257,7 +257,7 @@ static void pcie_aspm_configure_common_clock(struct pcie_link_state *link)
reg16 &= ~PCI_EXP_LNKCTL_CCC;
pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16);
- if (pcie_retrain_link(link->pdev))
+ if (pcie_retrain_link(link->pdev, true))
return;
/* Training failed. Restore common clock configurations */