Add a 1ms delay after powering on the PCIe power domain to ensure
the controller stabilizes before subsequent operations. This prevents
potential timing issues during PCIe endpoint initialization.

The delay allows sufficient time for the power domain to fully come
up and the hardware to be in a stable state before configuration
begins.

Signed-off-by: Hrushikesh Salunke <[email protected]>
---
 drivers/pci_endpoint/pcie_cdns_ti_ep.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci_endpoint/pcie_cdns_ti_ep.c 
b/drivers/pci_endpoint/pcie_cdns_ti_ep.c
index 661b6ba5b55..541616ab7d0 100644
--- a/drivers/pci_endpoint/pcie_cdns_ti_ep.c
+++ b/drivers/pci_endpoint/pcie_cdns_ti_ep.c
@@ -20,6 +20,7 @@
 #include <regmap.h>
 #include <syscon.h>
 #include <pci_ep.h>
+#include <linux/delay.h>
 
 #include "pcie-cadence.h"
 
@@ -90,7 +91,7 @@ static int pcie_cdns_reset(struct udevice *dev, struct 
power_domain *pci_pwrdmn)
                dev_err(dev, "failed to power on: %d\n", ret);
                return ret;
        }
-
+       mdelay(1);
        return 0;
 }
 
-- 
2.34.1

Reply via email to