diff options
author | Po Liu <po.liu@nxp.com> | 2016-08-29 15:26:58 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-12 16:32:36 -0500 |
commit | d99e30b7936ad2214548e33d8de15584c741bdb4 (patch) | |
tree | 627f50f06ff366a784b66998b0d3279328211a1b | |
parent | 156c55325d30261d250e88ed3a39f22008f4ca16 (diff) | |
download | op-kernel-dev-d99e30b7936ad2214548e33d8de15584c741bdb4.zip op-kernel-dev-d99e30b7936ad2214548e33d8de15584c741bdb4.tar.gz |
PCI: altera: 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>
Acked-by: Ley Foon Tan <lftan@altera.com>
-rw-r--r-- | drivers/pci/host/pcie-altera.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index 2b78376..edbe0a7 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c @@ -171,13 +171,6 @@ static bool altera_pcie_valid_config(struct altera_pcie *pcie, if (bus->number == pcie->root_bus_nr && dev > 0) return false; - /* - * Do not read more than one device on the bus directly attached - * to root port, root port can only attach to one downstream port. - */ - if (bus->primary == pcie->root_bus_nr && dev > 0) - return false; - return true; } |