]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: qcom: Replace PERST# sleep time with proper macro
authorNiklas Cassel <cassel@kernel.org>
Tue, 6 May 2025 07:39:39 +0000 (09:39 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 May 2025 21:56:56 +0000 (16:56 -0500)
Replace the PERST# sleep time with the proper macro (PCIE_T_PVPERL_MS).
No functional change.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Hans Zhang <18255117159@163.com>
Reviewed-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Link: https://patch.msgid.link/20250506073934.433176-10-cassel@kernel.org
drivers/pci/controller/dwc/pcie-qcom.c

index ba0dd1717a58aa681d31c3db78b80bb5f3af081a..a623ed0fbc2f4f4233396f3ebca36ed9aecb64c5 100644 (file)
@@ -289,7 +289,7 @@ static void qcom_ep_reset_assert(struct qcom_pcie *pcie)
 static void qcom_ep_reset_deassert(struct qcom_pcie *pcie)
 {
        /* Ensure that PERST has been asserted for at least 100 ms */
-       msleep(100);
+       msleep(PCIE_T_PVPERL_MS);
        gpiod_set_value_cansleep(pcie->reset, 0);
        usleep_range(PERST_DELAY_US, PERST_DELAY_US + 500);
 }