]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Add dw_pcie_ops.host_deinit() callback
authorBaikal Electronics <support@baikalelectronics.ru>
Fri, 24 Jun 2022 14:39:40 +0000 (17:39 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Aug 2022 20:07:34 +0000 (15:07 -0500)
commit8dea5accee8089d7d5168c3040ae245c06e25aa1
tree77d4dd037d9525124c82f68434905cc7e5c22dc5
parent0944a53447e43d064d9e58b92b55f4500e15ecf7
PCI: dwc: Add dw_pcie_ops.host_deinit() callback

dw_pcie_host_init() calls the dw_pcie_ops.host_init() callback to do
platform-specific host initialization.

Add a dw_pcie_ops.host_deinit() callback to perform the corresponding
cleanups in dw_pcie_host_deinit() and in dw_pcie_host_init() failure paths.

Link: https://lore.kernel.org/r/20220624143947.8991-9-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware-host.c
drivers/pci/controller/dwc/pcie-designware.h