]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Add debugfs support for PTM context
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 5 May 2025 14:24:41 +0000 (19:54 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Thu, 15 May 2025 09:16:30 +0000 (09:16 +0000)
commit852a1fdd34a82d719bd67a55111f13a72891a868
treee820e8a1c6fa9fe117c466b135c90c9c66d24f82
parent87a9d0cd6748b658a0c8f8c957c3260ed901f094
PCI: dwc: Add debugfs support for PTM context

Synopsys Designware PCIe IPs support PTM capability as defined in the PCIe
spec r6.0, sec 6.21. The PTM context information is exposed through Vendor
Specific Extended Capability (VSEC) registers on supported controller
implementation.

Hence, add support for exposing these context information to userspace
through the debugfs interface for the DWC controllers (both RC and EP).
Currently, only Qcom controllers are supported. For adding support for
other DWC vendor controllers, dwc_pcie_ptm_vsec_ids[] needs to be extended.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Link: https://patch.msgid.link/20250505-pcie-ptm-v4-3-02d26d51400b@linaro.org
drivers/pci/controller/dwc/pcie-designware-debugfs.c
drivers/pci/controller/dwc/pcie-designware.c
drivers/pci/controller/dwc/pcie-designware.h