]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Always stop link in the dw_pcie_suspend_noirq
authorRichard Zhu <hongxing.zhu@nxp.com>
Tue, 10 Dec 2024 08:15:56 +0000 (16:15 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 18 Jan 2025 17:35:26 +0000 (11:35 -0600)
commit86a016e278b78cc2281edd4ffaddbc011c87a593
tree5fbfd00680949823c4b03b1ea52de1c078d43c89
parentec9fd499b9c60a187ac8d6414c3c343c77d32e42
PCI: dwc: Always stop link in the dw_pcie_suspend_noirq

On the i.MX8QM, PCIe link can't be re-established again in
dw_pcie_resume_noirq(), if the LTSSM_EN bit is not cleared
properly in dw_pcie_suspend_noirq().

So, add dw_pcie_stop_link() to dw_pcie_suspend_noirq() to fix
this issue and to align the suspend/resume functions since there
is dw_pcie_start_link() in dw_pcie_resume_noirq() already.

Fixes: 4774faf854f5 ("PCI: dwc: Implement generic suspend/resume functionality")
Link: https://lore.kernel.org/r/20241210081557.163555-2-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
[kwilczynski: commit log]
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware-host.c