projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc8b24c
)
PCI: Add PCIE_PME_TO_L2_TIMEOUT_US L2 ready timeout value
author
Frank Li
<Frank.Li@nxp.com>
Mon, 21 Aug 2023 18:48:13 +0000
(14:48 -0400)
committer
Lorenzo Pieralisi
<lpieralisi@kernel.org>
Thu, 24 Aug 2023 09:18:02 +0000
(11:18 +0200)
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>
drivers/pci/pci.h
patch
|
blob
|
history
diff --git
a/drivers/pci/pci.h
b/drivers/pci/pci.h
index a4c3974340576812cabb0a9dbd1517397037fd2e..da8156663c8255fa21cbb03449cd6d9c30220e8a 100644
(file)
--- 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;