mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02: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:
parent
79b9c780ba
commit
824c99261a
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user