pci_endpoint: pci_cdns_ti_ep: Add delay after power domain reset
authorHrushikesh Salunke <h-salunke@ti.com>
Thu, 23 Oct 2025 11:46:01 +0000 (17:16 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 7 Nov 2025 22:08:49 +0000 (16:08 -0600)
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 <h-salunke@ti.com>
drivers/pci_endpoint/pcie_cdns_ti_ep.c

index 661b6ba..541616a 100644 (file)
@@ -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;
 }