PCI: rockchip: dw: Add LTSSM dump for debug

Change-Id: Ia53158d65e12047ab3a1b225635f274e0d30c36e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
Shawn Lin
2020-11-27 10:31:56 +08:00
parent f470814b10
commit 33fa05fe39

View File

@@ -411,11 +411,13 @@ static int rk_pcie_establish_link(struct dw_pcie *pci)
for (retries = 0; retries < 1000000; retries++) {
if (dw_pcie_link_up(pci)) {
dev_info(pci->dev, "PCIe Link up\n");
dev_info(pci->dev, "PCIe Link up, LTSSM is 0x%x\n",
rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS));
return 0;
}
dev_info_ratelimited(pci->dev, "PCIe Linking...\n");
dev_info_ratelimited(pci->dev, "PCIe Linking... LTSSM is 0x%x\n",
rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS));
mdelay(1000);
}