File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,11 @@ static int rockchip_pcie_init_irq_domain(struct rockchip_pcie *rockchip)
143
143
return 0 ;
144
144
}
145
145
146
+ static u32 rockchip_pcie_get_ltssm (struct rockchip_pcie * rockchip )
147
+ {
148
+ return rockchip_pcie_readl_apb (rockchip , PCIE_CLIENT_LTSSM_STATUS );
149
+ }
150
+
146
151
static void rockchip_pcie_enable_ltssm (struct rockchip_pcie * rockchip )
147
152
{
148
153
rockchip_pcie_writel_apb (rockchip , PCIE_CLIENT_ENABLE_LTSSM ,
@@ -152,7 +157,7 @@ static void rockchip_pcie_enable_ltssm(struct rockchip_pcie *rockchip)
152
157
static int rockchip_pcie_link_up (struct dw_pcie * pci )
153
158
{
154
159
struct rockchip_pcie * rockchip = to_rockchip_pcie (pci );
155
- u32 val = rockchip_pcie_readl_apb (rockchip , PCIE_CLIENT_LTSSM_STATUS );
160
+ u32 val = rockchip_pcie_get_ltssm (rockchip );
156
161
157
162
if ((val & PCIE_LINKUP ) == PCIE_LINKUP &&
158
163
(val & PCIE_LTSSM_STATUS_MASK ) == PCIE_L0S_ENTRY )
You can’t perform that action at this time.
0 commit comments