We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbbfe9f commit 114b06eCopy full SHA for 114b06e
drivers/pci/controller/pcie-rockchip-host.c
@@ -342,6 +342,10 @@ static int rockchip_pcie_host_init_port(struct rockchip_pcie *rockchip)
342
* Enable retrain for gen2. This should be configured only after
343
* gen1 finished.
344
*/
345
+ status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL2);
346
+ status &= ~PCI_EXP_LNKCTL2_TLS;
347
+ status |= PCI_EXP_LNKCTL2_TLS_5_0GT;
348
+ rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL2);
349
status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL);
350
status |= PCI_EXP_LNKCTL_RL;
351
rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL);
0 commit comments