Skip to content

Commit e78bd50

Browse files
nxpfrankliLorenzo Pieralisi
authored andcommitted
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>
1 parent fc8b24c commit e78bd50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/pci/pci.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313

1414
#define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000
1515

16+
/*
17+
* PCIe r6.0, sec 5.3.3.2.1 <PME Synchronization>
18+
* Recommends 1ms to 10ms timeout to check L2 ready.
19+
*/
20+
#define PCIE_PME_TO_L2_TIMEOUT_US 10000
21+
1622
extern const unsigned char pcie_link_speed[];
1723
extern bool pci_early_dump;
1824

0 commit comments

Comments
 (0)