mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
PCI: rockchip: dw: decrease linking timeout to 10s
The original waiting time is too long for setting up a link, so let's decrease it to 10s which is enough for real usecase. Change-Id: Ifb1eb0d7784e9afeef165f084bc3bda49b41618e Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
@@ -451,7 +451,7 @@ static int rk_pcie_establish_link(struct dw_pcie *pci)
|
||||
/* Enable LTSSM */
|
||||
rk_pcie_enable_ltssm(rk_pcie);
|
||||
|
||||
for (retries = 0; retries < 1000000; retries++) {
|
||||
for (retries = 0; retries < 10; retries++) {
|
||||
if (dw_pcie_link_up(pci)) {
|
||||
dev_info(pci->dev, "PCIe Link up, LTSSM is 0x%x\n",
|
||||
rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS));
|
||||
@@ -462,7 +462,7 @@ static int rk_pcie_establish_link(struct dw_pcie *pci)
|
||||
dev_info_ratelimited(pci->dev, "PCIe Linking... LTSSM is 0x%x\n",
|
||||
rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS));
|
||||
rk_pcie_debug_dump(rk_pcie);
|
||||
mdelay(1000);
|
||||
msleep(1000);
|
||||
}
|
||||
|
||||
dev_err(pci->dev, "PCIe Link Fail\n");
|
||||
|
||||
Reference in New Issue
Block a user