Skip to content

Commit f50e0c7

Browse files
Vidya Sagarbjorn-helgaas
authored andcommitted
PCI: tegra194: Calibrate pipe to UPHY for Endpoint mode
Calibrate 'Pipe to Universal PHY(UPHY)' (P2U) for the Endpoint controller to request UPHY PLL rate change to 2.5GT/s (Gen 1) during initialization. This helps to reset stale PLL state from the previous bad link state. Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: Vidya Sagar <vidyas@nvidia.com> Link: https://patch.msgid.link/20260324191000.1095768-3-mmaddireddy@nvidia.com
1 parent 01d3626 commit f50e0c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,9 @@ static int tegra_pcie_enable_phy(struct tegra_pcie_dw *pcie)
10721072
ret = phy_power_on(pcie->phys[i]);
10731073
if (ret < 0)
10741074
goto phy_exit;
1075+
1076+
if (pcie->of_data->mode == DW_PCIE_EP_TYPE)
1077+
phy_calibrate(pcie->phys[i]);
10751078
}
10761079

10771080
return 0;

0 commit comments

Comments
 (0)