]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: cadence-host: Introduce cdns_pcie_host_disable() helper for cleanup
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Thu, 17 Apr 2025 12:44:06 +0000 (18:14 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 Jun 2025 21:02:37 +0000 (16:02 -0500)
commit47f25da6c5ea55494f4de5ca1ecf6c456b4b3e2a
tree067ced3c232b27cef98a24e4317ca1e7ba919a9b
parentf876904e44360449e64e2d38c428eba3a03d7a47
PCI: cadence-host: Introduce cdns_pcie_host_disable() helper for cleanup

Introduce the helper function cdns_pcie_host_disable() which will undo
the configuration performed by cdns_pcie_host_setup(). Also, export it
for use by existing callers of cdns_pcie_host_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-3-s-vadapalli@ti.com
drivers/pci/controller/cadence/pcie-cadence-host.c
drivers/pci/controller/cadence/pcie-cadence.h