diff options
author | Frank Li <Frank.Li@nxp.com> | 2023-08-21 14:48:13 -0400 |
---|---|---|
committer | Lorenzo Pieralisi <lpieralisi@kernel.org> | 2023-08-24 11:18:02 +0200 |
commit | e78bd50b4078b3b2d9f85d97796b7c271e7860ca (patch) | |
tree | f95c193ba1ebd0723b9af9bb475817f795e8bc0b /drivers/pci/pci.h | |
parent | fc8b24c28bec19fc0621d108b9ee81ddfdedb25a (diff) | |
download | linux-e78bd50b4078b3b2d9f85d97796b7c271e7860ca.tar.gz linux-e78bd50b4078b3b2d9f85d97796b7c271e7860ca.tar.bz2 linux-e78bd50b4078b3b2d9f85d97796b7c271e7860ca.zip |
PCI: Add PCIE_PME_TO_L2_TIMEOUT_US L2 ready timeout value
Add the PCIE_PME_TO_L2_TIMEOUT_US macro to define the L2 ready timeout
as described in the PCI specifications.
Link: https://lore.kernel.org/r/20230821184815.2167131-2-Frank.Li@nxp.com
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index a4c397434057..da8156663c82 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -13,6 +13,12 @@ #define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000 +/* + * PCIe r6.0, sec 5.3.3.2.1 <PME Synchronization> + * Recommends 1ms to 10ms timeout to check L2 ready. + */ +#define PCIE_PME_TO_L2_TIMEOUT_US 10000 + extern const unsigned char pcie_link_speed[]; extern bool pci_early_dump; |