diff options
author | Po Liu <po.liu@nxp.com> | 2016-08-29 09:26:58 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-12 23:40:34 +0200 |
commit | 8e7ca8ca5fd8a3242289105723c429733be8b73b (patch) | |
tree | 684258c596eff33c3c18e0cb6bd271ee0c84f782 /drivers/pci/host/pcie-xilinx.c | |
parent | PCI: designware: Relax device number checking to allow SR-IOV (diff) | |
download | linux-8e7ca8ca5fd8a3242289105723c429733be8b73b.tar.xz linux-8e7ca8ca5fd8a3242289105723c429733be8b73b.zip |
PCI: xilinx: Relax device number checking to allow SR-IOV
Previously we only allowed device 0 to be directly attached to the root
port. But SR-IOV devices may use non-zero device numbers for VFs.
Remove the restriction that only device 0 may be attached to a root port.
[bhelgaas: changelog]
Signed-off-by: Po Liu <po.liu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host/pcie-xilinx.c')
-rw-r--r-- | drivers/pci/host/pcie-xilinx.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index a30e01639557..75c89dbadad9 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c @@ -168,13 +168,6 @@ static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) if (bus->number == port->root_busno && devfn > 0) return false; - /* - * Do not read more than one device on the bus directly attached - * to RC. - */ - if (bus->primary == port->root_busno && devfn > 0) - return false; - return true; } |