Skip to content

Commit 6aa9c09

Browse files
thom24kwilczynski
authored andcommitted
PCI: Add T_PERST_CLK_US macro
The "Power Sequencing and Reset Signal Timings" table of the PCI Express Card Electromechanical Specification, Revision 5.1, Section 2.9.2, indicates PERST# should be deasserted after minimum of 100us once REFCLK is stable (symbol T_PERST-CLK). Add a macro so that PCIe controller drivers can use it. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Thomas Richard <[email protected]> [kwilczynski: commit log, update sleep interval macros code comments] Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent b8600b8 commit 6aa9c09

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

drivers/pci/pci.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,24 @@
1313

1414
#define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000
1515

16-
/* Power stable to PERST# inactive from PCIe card Electromechanical Spec */
16+
/*
17+
* Power stable to PERST# inactive.
18+
*
19+
* See the "Power Sequencing and Reset Signal Timings" table of the PCI Express
20+
* Card Electromechanical Specification, Revision 5.1, Section 2.9.2, Symbol
21+
* "T_PVPERL".
22+
*/
1723
#define PCIE_T_PVPERL_MS 100
1824

25+
/*
26+
* REFCLK stable before PERST# inactive.
27+
*
28+
* See the "Power Sequencing and Reset Signal Timings" table of the PCI Express
29+
* Card Electromechanical Specification, Revision 5.1, Section 2.9.2, Symbol
30+
* "T_PERST-CLK".
31+
*/
32+
#define PCIE_T_PERST_CLK_US 100
33+
1934
/*
2035
* End of conventional reset (PERST# de-asserted) to first configuration
2136
* request (device able to respond with a "Request Retry Status" completion),

0 commit comments

Comments
 (0)