aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2024-12-04 15:01:44 +0000
committerBjorn Helgaas <[email protected]>2025-01-15 20:52:12 +0000
commit477ac7b0a7984e12e8db07fe54ad64443c5f8928 (patch)
treef5ade3c2df2266ac69387d1c18e87d3e8cd33aa0 /drivers/pci/controller/pci-host-common.c
parentPCI: imx6: Add IOMMU and ITS MSI support for i.MX95 (diff)
downloadkernel-477ac7b0a7984e12e8db07fe54ad64443c5f8928.tar.gz
kernel-477ac7b0a7984e12e8db07fe54ad64443c5f8928.zip
PCI: host-generic: Allow {en,dis}able_device() to be provided via pci_ecam_ops
In order to let host controller drivers using the host-generic infrastructure use the {en,dis}able_device() callbacks that can be used to configure sideband RID mapping hardware, provide these two callbacks as part of the pci_ecam_ops structure. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Frank Li <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
-rw-r--r--drivers/pci/controller/pci-host-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-host-common.c b/drivers/pci/controller/pci-host-common.c
index cf5f59a745b3..f441bfd6f96a 100644
--- a/drivers/pci/controller/pci-host-common.c
+++ b/drivers/pci/controller/pci-host-common.c
@@ -75,6 +75,8 @@ int pci_host_common_probe(struct platform_device *pdev)
bridge->sysdata = cfg;
bridge->ops = (struct pci_ops *)&ops->pci_ops;
+ bridge->enable_device = ops->enable_device;
+ bridge->disable_device = ops->disable_device;
bridge->msi_domain = true;
return pci_host_probe(bridge);