Skip to content

Commit

Permalink
PCI: tegra194: Fix link up retry sequence
Browse files Browse the repository at this point in the history
[ Upstream commit e05fd6a ]

Add the missing DLF capability offset while clearing DL_FEATURE_EXCHANGE_EN
bit during link up retry.

Link: https://lore.kernel.org/r/20220721142052.25971-15-vidyas@nvidia.com
Fixes: 56e15a2 ("PCI: tegra: Add Tegra194 PCIe support")
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Vidya Sagar authored and gregkh committed Aug 17, 2022
1 parent 472db7d commit 0d26515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/controller/dwc/pcie-tegra194.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ static int tegra_pcie_dw_start_link(struct dw_pcie *pci)
offset = dw_pcie_find_ext_capability(pci, PCI_EXT_CAP_ID_DLF);
val = dw_pcie_readl_dbi(pci, offset + PCI_DLF_CAP);
val &= ~PCI_DLF_EXCHANGE_ENABLE;
dw_pcie_writel_dbi(pci, offset, val);
dw_pcie_writel_dbi(pci, offset + PCI_DLF_CAP, val);

tegra_pcie_dw_host_init(pp);
dw_pcie_setup_rc(pp);
Expand Down

0 comments on commit 0d26515

Please sign in to comment.