From: Florian Fainelli Date: Tue, 24 Jun 2025 23:19:23 +0000 (-0700) Subject: PCI: brcmstb: Replace open coded value with PCIE_T_RRS_READY_MS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8e7c1e95d6d4ccdc53654a5966d2183532ab115;p=thirdparty%2Fkernel%2Flinux.git PCI: brcmstb: Replace open coded value with PCIE_T_RRS_READY_MS The delay that we are waiting on in brcm_pcie_start_link() is PCIE_T_RRS_READY_MS, use it. Signed-off-by: Florian Fainelli [mani: Removed the redundant comment] Signed-off-by: Manivannan Sadhasivam Link: https://patch.msgid.link/20250624231923.990361-3-florian.fainelli@broadcom.com --- diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index 744df5bd39ae..db7402bb6291 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -1358,11 +1358,7 @@ static int brcm_pcie_start_link(struct brcm_pcie *pcie) if (ret) return ret; - /* - * Wait for 100ms after PERST# deassertion; see PCIe CEM specification - * sections 2.2, PCIe r5.0, 6.6.1. - */ - msleep(100); + msleep(PCIE_T_RRS_READY_MS); /* * Give the RC/EP even more time to wake up, before trying to