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 <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Tested-by: Laszlo Fiat <[email protected]> Reviewed-by: Hans Zhang <[email protected]> Reviewed-by: Wilfred Mallawa <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent d1c696d commit d34719d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)