diff options
author | Bryant G. Ly <bryantly@linux.vnet.ibm.com> | 2017-11-09 15:00:35 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-12-11 03:03:36 +0100 |
commit | 608c0d8804ef3ca4cda8ec6ad914e47deb283d7b (patch) | |
tree | 72f7ed3e570c6a926601621f1af161ed65685fd0 /arch/powerpc/platforms/pseries/pci.c | |
parent | powerpc/pseries: Add pseries SR-IOV Machine dependent calls (diff) | |
download | linux-608c0d8804ef3ca4cda8ec6ad914e47deb283d7b.tar.xz linux-608c0d8804ef3ca4cda8ec6ad914e47deb283d7b.zip |
PCI/IOV: Add pci_vf_drivers_autoprobe() interface
Add a pci_vf_drivers_autoprobe() interface. Setting autoprobe to false
on the PF prevents drivers from binding to VFs when they are enabled.
Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Signed-off-by: Juan J. Alvarez <jjalvare@linux.vnet.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/pseries/pci.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c index 14a90cf471cc..48d3af026f90 100644 --- a/arch/powerpc/platforms/pseries/pci.c +++ b/arch/powerpc/platforms/pseries/pci.c @@ -63,6 +63,7 @@ int pseries_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) { /* Allocate PCI data */ add_dev_pci_data(pdev); + pci_vf_drivers_autoprobe(pdev, false); return 0; } @@ -70,6 +71,7 @@ int pseries_pcibios_sriov_disable(struct pci_dev *pdev) { /* Release PCI data */ remove_dev_pci_data(pdev); + pci_vf_drivers_autoprobe(pdev, true); return 0; } #endif |