]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: tegra: Disable LTSSM during L2 entry
authorVidya Sagar <vidyas@nvidia.com>
Thu, 3 Dec 2020 13:34:51 +0000 (19:04 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 7 Dec 2020 16:43:52 +0000 (16:43 +0000)
commitaff43fac9fa43f4eba4477b87844f6eae8cb3100
treeb3f4731b47d1a8138e11f494b30a094a937032d6
parent560d41c467e3f9b1394f064f0f0d3222d7fc0e35
PCI: tegra: Disable LTSSM during L2 entry

PCIe cards like Marvell SATA controller and some of the Samsung NVMe
drives don't support taking the link to L2 state. When the link doesn't
go to L2 state, Tegra194 requires the LTSSM to be disabled to allow PHY
to start the next link up process cleanly during suspend/resume sequence.
Failing to disable LTSSM results in the PCIe link not coming up in the
next resume cycle.

Link: https://lore.kernel.org/r/20201203133451.17716-6-vidyas@nvidia.com
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
drivers/pci/controller/dwc/pcie-tegra194.c