]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: cadence-ep: Introduce cdns_pcie_ep_disable() helper for cleanup
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Thu, 17 Apr 2025 12:44:07 +0000 (18:14 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 Jun 2025 21:02:37 +0000 (16:02 -0500)
commit3a4b05c9bae485d230560278a659e0830f96e28f
tree1ce60bd5bfce1eac443fc83241ec9aa90645fb65
parent47f25da6c5ea55494f4de5ca1ecf6c456b4b3e2a
PCI: cadence-ep: Introduce cdns_pcie_ep_disable() helper for cleanup

Introduce the helper function cdns_pcie_ep_disable() which will undo the
configuration performed by cdns_pcie_ep_setup(). Also, export it for use
by the existing callers of cdns_pcie_ep_setup(), thereby allowing them
to cleanup on their exit path.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://patch.msgid.link/20250417124408.2752248-4-s-vadapalli@ti.com
drivers/pci/controller/cadence/pcie-cadence-ep.c
drivers/pci/controller/cadence/pcie-cadence.h