]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: dwc: Add debugfs property to provide LTSSM status of the PCIe link
authorHans Zhang <18255117159@163.com>
Sun, 23 Feb 2025 14:18:48 +0000 (22:18 +0800)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Thu, 6 Mar 2025 08:55:54 +0000 (08:55 +0000)
commitf0f3044d2246495e01871212fc7ec5e206555338
tree61cbe3f3daa5590f192fc8a2239263a5bfbd2bab
parent27491ac2ccd7e111a9c058e7654d372cbfcdad4c
PCI: dwc: Add debugfs property to provide LTSSM status of the PCIe link

Add the debugfs property to provide a view of the current link's LTSSM
status from the Root Port device.

Signed-off-by: Hans Zhang <18255117159@163.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Niklas Cassel <cassel@kernel.org>
Tested-by: Hrishikesh Deleep <hrishikesh.d@samsung.com>
Link: https://lore.kernel.org/r/20250223141848.231232-1-18255117159@163.com
[kwilczynski: commit log, refactor dw_ltssm_sts_string() to avoid
compilation errors on platforms that do not set CONFIG_PCIE_DW_HOST]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Documentation/ABI/testing/debugfs-dwc-pcie
drivers/pci/controller/dwc/pcie-designware-debugfs.c
drivers/pci/controller/dwc/pcie-designware.h