Skip to content

Commit d34719d

Browse files
floatiousbjorn-helgaas
authored andcommitted
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: Niklas Cassel <cassel@kernel.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Laszlo Fiat <laszlo.fiat@proton.me> Reviewed-by: Hans Zhang <18255117159@163.com> Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com> Link: https://patch.msgid.link/20250506073934.433176-9-cassel@kernel.org
1 parent d1c696d commit d34719d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pci/controller/dwc/pcie-dw-rockchip.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/regmap.h>
2323
#include <linux/reset.h>
2424

25+
#include "../../pci.h"
2526
#include "pcie-designware.h"
2627

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

230231
return 0;

0 commit comments

Comments
 (0)