summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHrushikesh Salunke <[email protected]>2025-10-23 17:16:01 +0530
committerTom Rini <[email protected]>2025-11-07 16:08:49 -0600
commit352214e8b2fadae4af7b7d9c849af24a7350ab2b (patch)
tree7f9988ca78d777ac78938562931363c6aa847f11
parentb10c055d4e1b5153a331a61ef82a5b01b5bb4c45 (diff)
pci_endpoint: pci_cdns_ti_ep: Add delay after power domain reset
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]>
-rw-r--r--drivers/pci_endpoint/pcie_cdns_ti_ep.c3
1 files changed, 2 insertions, 1 deletions
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;
}