From 9b9b3e08d836cceca8e1d169f0eef3253e99073f Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Thu, 19 Sep 2024 17:32:02 +0200 Subject: [PATCH] add debug info for https://github.com/armbian/linux-rockchip/pull/221 - see https://github.com/armbian/linux-rockchip/pull/221#issuecomment-2360428291 --- drivers/pci/controller/dwc/pcie-dw-rockchip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c index 94b221b5b6148..03c79f0fcd5fa 100644 --- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c +++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c @@ -281,7 +281,10 @@ static int rk_pcie_link_up(struct dw_pcie *pci) val = rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS); if ((val & (RDLH_LINKUP | SMLH_LINKUP)) == 0x30000) + { + dev_info(pci->dev, "%s: val & (RDLH_LINKUP | SMLH_LINKUP) is 0x%lx, val & GENMASK(5, 0) is 0x%lx, going to return 1\n", __func__, (val & (RDLH_LINKUP | SMLH_LINKUP)), (val & GENMASK(5, 0))); return 1; + } return 0; }