]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Remove LTSSM state test in dw_pcie_suspend_noirq()
authorRichard Zhu <hongxing.zhu@nxp.com>
Tue, 10 Dec 2024 08:15:57 +0000 (16:15 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 18 Jan 2025 19:38:34 +0000 (13:38 -0600)
commit112aba9a79345aae81c508d92c1e9711c81d791c
tree791e6cd5c66d9c5583875d32133a90a9719192b3
parent86a016e278b78cc2281edd4ffaddbc011c87a593
PCI: dwc: Remove LTSSM state test in dw_pcie_suspend_noirq()

It's safe to send PME_TURN_OFF message regardless of whether the link is up
or down, so don't test the LTSSM state before sending the PME_TURN_OFF
message.

Only print an error message when the LTSSM is not in DETECT or POLL. There
shouldn't be an error when no Endpoint is connected at all.

Link: https://lore.kernel.org/r/20241210081557.163555-3-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>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware-host.c
drivers/pci/controller/dwc/pcie-designware.h