Skip to content

Commit 31f7829

Browse files
shawn1221rkhuangtao
authored andcommitted
PCI: rockchip: Disable ltssm after waiting for L2 handshake
We should not disable it before L2, otherwise all L2 transaction event would be lost for RC side, leading to unstable L2 link stage. Change-Id: Ia87f8749d4a0acc9aeb1215682209c853672a84d Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
1 parent eacc3b7 commit 31f7829

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/pci/host/pcie-rockchip.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,10 +1404,6 @@ static int rockchip_pcie_suspend_for_user(struct device *dev)
14041404
struct rockchip_pcie *rockchip = dev_get_drvdata(dev);
14051405
int ret;
14061406

1407-
/* disable ltssm */
1408-
rockchip_pcie_write(rockchip, PCIE_CLIENT_LINK_TRAIN_DISABLE,
1409-
PCIE_CLIENT_CONFIG);
1410-
14111407
/* disable core and cli int since we don't need to ack PME_ACK */
14121408
rockchip_pcie_write(rockchip, (PCIE_CLIENT_INT_CLI << 16) |
14131409
PCIE_CLIENT_INT_CLI, PCIE_CLIENT_INT_MASK);
@@ -1419,6 +1415,10 @@ static int rockchip_pcie_suspend_for_user(struct device *dev)
14191415
return ret;
14201416
}
14211417

1418+
/* disable ltssm */
1419+
rockchip_pcie_write(rockchip, PCIE_CLIENT_LINK_TRAIN_DISABLE,
1420+
PCIE_CLIENT_CONFIG);
1421+
14221422
phy_power_off(rockchip->phy);
14231423
phy_exit(rockchip->phy);
14241424

0 commit comments

Comments
 (0)