Commit d34719d0 authored by Niklas Cassel's avatar Niklas Cassel Committed by Bjorn Helgaas
Browse files

PCI: dw-rockchip: Replace PERST# sleep time with proper macro



Replace the PERST# sleep time with the proper macro (PCIE_T_PVPERL_MS).
No functional change.

Signed-off-by: default avatarNiklas Cassel <cassel@kernel.org>
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Tested-by: default avatarLaszlo Fiat <laszlo.fiat@proton.me>
Reviewed-by: default avatarHans Zhang <18255117159@163.com>
Reviewed-by: default avatarWilfred Mallawa <wilfred.mallawa@wdc.com>
Link: https://patch.msgid.link/20250506073934.433176-9-cassel@kernel.org
parent d1c696db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <linux/regmap.h>
#include <linux/reset.h>

#include "../../pci.h"
#include "pcie-designware.h"

/*
@@ -224,7 +225,7 @@ static int rockchip_pcie_start_link(struct dw_pcie *pci)
	 * We need more extra time as before, rather than setting just
	 * 100us as we don't know how long should the device need to reset.
	 */
	msleep(100);
	msleep(PCIE_T_PVPERL_MS);
	gpiod_set_value_cansleep(rockchip->rst_gpio, 1);

	return 0;