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)
commitcf68e3b7a6b75d8f0e68c80fb353cde1878ef682
treeb3f4731b47d1a8138e11f494b30a094a937032d6
parent3d710af75bcdea2e9cb8cdb2f7663cef7b133f5e
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