summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pci-bridge.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-05-27 08:06:59 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-03 05:27:16 +0200
commit7a8e6bbf8593a9395dd6c61f7c5f421570600017 (patch)
tree6247d0668a48fc4bea1981fc45329b70d69fe771 /arch/powerpc/include/asm/pci-bridge.h
parentpowerpc: Add cxl context to device archdata (diff)
downloadlinux-7a8e6bbf8593a9395dd6c61f7c5f421570600017.tar.xz
linux-7a8e6bbf8593a9395dd6c61f7c5f421570600017.zip
powerpc/pci: Add shutdown hook to pci_controller_ops
Currently pnv_pci_shutdown() calls the PHB shutdown code for all PHBs in the system. It dereferences the private_data assuming it's a powernv PHB, which won't be the case when we have different PHB in the systems (like when we add vPHBs for CXL). This moves the shutdown hook to the pci_controller_ops and fixes the call site to use that instead. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/pci-bridge.h')
-rw-r--r--arch/powerpc/include/asm/pci-bridge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h
index 4cf0caaa33c7..3947749de280 100644
--- a/arch/powerpc/include/asm/pci-bridge.h
+++ b/arch/powerpc/include/asm/pci-bridge.h
@@ -40,6 +40,8 @@ struct pci_controller_ops {
#endif
int (*dma_set_mask)(struct pci_dev *dev, u64 dma_mask);
+
+ void (*shutdown)(struct pci_controller *);
};
/*