From: Sebastian Ott Date: Fri, 21 Dec 2018 14:14:20 +0000 (+0100) Subject: s390/pci: skip VF scanning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7dc20ab1b9c431b792a6fe1e78baf36b63edc5e3;p=openwrt%2Fstaging%2Fblogic.git s390/pci: skip VF scanning Set the flag to skip scanning for VFs after SR-IOV enablement. VF creation will be triggered by the hotplug code. Signed-off-by: Sebastian Ott Signed-off-by: Bjorn Helgaas Reviewed-by: Christoph Hellwig --- diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index 9f6f392a4461..4266a4de3160 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c @@ -651,6 +651,9 @@ int pcibios_add_device(struct pci_dev *pdev) struct resource *res; int i; + if (pdev->is_physfn) + pdev->no_vf_scan = 1; + pdev->dev.groups = zpci_attr_groups; pdev->dev.dma_ops = &s390_pci_dma_ops; zpci_map_resources(pdev);