mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
PCI: rockchip: dw: Update link up check state
PCIe Link up state is not only L0(0x11), but also other state like L0s, L1 and etc. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Change-Id: I9b04d01ea38be6423c214f6cb474d045dff235d5
This commit is contained in:
@@ -647,8 +647,7 @@ static int rk_pcie_link_up(struct dw_pcie *pci)
|
||||
return 1;
|
||||
} else {
|
||||
val = rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS);
|
||||
if ((val & (RDLH_LINKUP | SMLH_LINKUP)) == 0x30000 &&
|
||||
(val & GENMASK(5, 0)) == 0x11)
|
||||
if ((val & (RDLH_LINKUP | SMLH_LINKUP)) == 0x30000)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user