PCI: rockchip: disable ltssm after link setup

Disable ltssm in case of EP auto relink if EP reboot

Change-Id: I08b3dc4426fa3a90bb74b9e3264221fe528f4526
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue
2019-10-24 11:35:48 +08:00
committed by Tao Huang
parent ef77f8d634
commit a82a0c27da

View File

@@ -407,6 +407,11 @@ static int rockchip_pcie_host_init_port(struct rockchip_pcie *rockchip)
}
}
/* disable ltssm */
if (rockchip->dma_trx_enabled)
rockchip_pcie_write(rockchip, PCIE_CLIENT_LINK_TRAIN_DISABLE,
PCIE_CLIENT_CONFIG);
rockchip_pcie_write(rockchip, ROCKCHIP_VENDOR_ID,
PCIE_CORE_CONFIG_VENDOR);
rockchip_pcie_write(rockchip,