summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-imx6.c
diff options
context:
space:
mode:
authorJisheng Zhang2019-03-29 12:59:26 +0100
committerBjorn Helgaas2019-05-07 15:59:49 +0200
commitfe23274f72f4e3be93134aac0ae1e1fd522f438a (patch)
tree1f0d1b32f08c82610e5c2cba2f46365fc5f5476b /drivers/pci/controller/dwc/pci-imx6.c
parentPCI: dwc: Use devm_pci_alloc_host_bridge() to simplify code (diff)
downloadkernel-qcow2-linux-fe23274f72f4e3be93134aac0ae1e1fd522f438a.tar.gz
kernel-qcow2-linux-fe23274f72f4e3be93134aac0ae1e1fd522f438a.tar.xz
kernel-qcow2-linux-fe23274f72f4e3be93134aac0ae1e1fd522f438a.zip
PCI: dwc: Save root bus for driver remove hooks
Currently DWC host does not support the remove callback, but nothing prevents us from supporting it. Save the root bus for clean up work in driver remove code paths to allow DWC host drivers to implement their remove hook as, eg: static int foo_pcie_remove(struct platform_device *pdev) { ... pci_stop_root_bus(pp->root_bus); pci_remove_root_bus(pp->root_bus); dw_pcie_free_msi(pp); ... } Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-imx6.c')
0 files changed, 0 insertions, 0 deletions