lkml.org 
[lkml]   [2023]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v8 1/3] PCI: Add macro PCIE_PME_TO_L2_TIMEOUT_US
Date
Introduces the PCIE_PME_TO_L2_TIMEOUT_US macro to facilitate checking the
PME (Power Management Event) timeout in the PCI subsystem.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/pci/pci.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index a4c3974340576..da8156663c825 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;

--
2.34.1
\
 
 \ /
  Last update: 2023-08-03 17:05    [W:0.034 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site