]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: dwc: Rework the error print of dw_pcie_wait_for_link()
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Tue, 20 Jan 2026 17:47:43 +0000 (23:17 +0530)
committerManivannan Sadhasivam <mani@kernel.org>
Wed, 21 Jan 2026 09:15:32 +0000 (14:45 +0530)
commitd266f63b385a3bad5fd6f23797b6de57de998677
treec3760b5fdd349e97ab1292537ec797000fc2f898
parent36dd677f7d76ddec96d50cf57f543ba7d612087c
PCI: dwc: Rework the error print of dw_pcie_wait_for_link()

For the cases where the link cannot come up later i.e., when LTSSM is not
in Detect.{Quiet/Active} or Poll.{Active/Compliance} states,
dw_pcie_wait_for_link() should log an error.

So promote dev_info() to dev_err(), reword the error log to make it clear
and also print the LTSSM state to aid debugging.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Tested-by: Richard Zhu <hongxing.zhu@nxp.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260120-pci-dwc-suspend-rework-v4-4-2f32d5082549@oss.qualcomm.com
drivers/pci/controller/dwc/pcie-designware.c