diff options
author | Maciej W. Rozycki <macro@orcam.me.uk> | 2023-06-11 18:19:19 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-06-20 10:58:53 -0500 |
commit | 33a176abcc4cd4ed3d65512ed96d7b73f2565ed7 (patch) | |
tree | 2281d730dacc3f216bd4b019427b96ddb062735c /drivers/pci/pci.h | |
parent | 07a8d698de50c4740ac6f709c43e23a6da6e4dbc (diff) | |
download | lwn-33a176abcc4cd4ed3d65512ed96d7b73f2565ed7.tar.gz lwn-33a176abcc4cd4ed3d65512ed96d7b73f2565ed7.zip |
PCI: Export PCIe link retrain timeout
Convert LINK_RETRAIN_TIMEOUT from jiffies to milliseconds, accordingly
rename to PCIE_LINK_RETRAIN_TIMEOUT_MS, and make available via "pci.h" for
the PCI core to use. Use in pcie_wait_for_link_delay().
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2305310030280.59226@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/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 2475098f6518..d5fe253114f2 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -11,6 +11,8 @@ #define PCI_VSEC_ID_INTEL_TBT 0x1234 /* Thunderbolt */ +#define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000 + extern const unsigned char pcie_link_speed[]; extern bool pci_early_dump; |