]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: tegra194: Disable LTSSM after transition to Detect on surprise link down
authorManikanta Maddireddy <mmaddireddy@nvidia.com>
Tue, 24 Mar 2026 19:07:44 +0000 (00:37 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Apr 2026 21:56:34 +0000 (16:56 -0500)
commit9fa0c242f8d7acf1b124d4462d18f4023573ac1c
tree4fa321e9550d85bf4898f751858fefcca255ec61
parent74dd8efe4d6cead433162147333af989a568aac7
PCI: tegra194: Disable LTSSM after transition to Detect on surprise link down

After the link reaches a Detect-related LTSSM state, disable LTSSM so it
does not keep toggling between Polling and Detect. Do this by polling for
the Detect state first, then clearing APPL_CTRL_LTSSM_EN in both
tegra_pcie_dw_pme_turnoff() and pex_ep_event_pex_rst_assert().

Fixes: 56e15a238d92 ("PCI: tegra: Add Tegra194 PCIe support")
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>
Link: https://patch.msgid.link/20260324190755.1094879-4-mmaddireddy@nvidia.com
drivers/pci/controller/dwc/pcie-tegra194.c