pci_endpoint: pci_cdns_ti_ep: Enable PCIe Endpoint mode in J784S4 SoC
authorHrushikesh Salunke <h-salunke@ti.com>
Thu, 23 Oct 2025 11:46:03 +0000 (17:16 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 7 Nov 2025 22:08:49 +0000 (16:08 -0600)
commit8692f48baad3b94357dc6fd114ebed8c633637a6
tree7034c7b2f9ccdb6a3dca553b16cf37720df37878
parentf0c7d4b4c637a3ae74f71d4a4b565e8ba999d744
pci_endpoint: pci_cdns_ti_ep: Enable PCIe Endpoint mode in J784S4 SoC

TI's J784S4 SoC has two instances of PCIe Controller namely PCIe0 and
PCIe1 which are Cadence PCIe Controllers. Add support to configure PCIe
instances in Endpoint mode of operation.

While at it disable all endpoint functions except function 0 during
probe to prevent the Root Complex from enumerating unconfigured
functions. This ensures only  properly configured endpoint functions
are visible to the host and avoids enumeration issues with
multi-function devices.

Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
drivers/pci_endpoint/pcie_cdns_ti_ep.c