Skip to content

Commit

Permalink
add debug info for armbian#221
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini committed Sep 19, 2024
1 parent b7cb52d commit 9b9b3e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/controller/dwc/pcie-dw-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b9b3e0

Please sign in to comment.