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:39:20 -0500 |
commit | e18934b5e9c78bb8c223b323275c14a0968e2737 (patch) | |
tree | 775a70e0af84d42559a4c5bdfda03089dbbff923 /drivers/pci/host/pcie-designware.c | |
parent | d99e30b7936ad2214548e33d8de15584c741bdb4 (diff) | |
download | lwn-e18934b5e9c78bb8c223b323275c14a0968e2737.tar.gz lwn-e18934b5e9c78bb8c223b323275c14a0968e2737.zip |
PCI: designware: 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: Jingoo Han <jingoohan1@gmail.com>
Diffstat (limited to 'drivers/pci/host/pcie-designware.c')
-rw-r--r-- | drivers/pci/host/pcie-designware.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 12afce19890b..dd20eb2fd865 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -670,13 +670,6 @@ static int dw_pcie_valid_config(struct pcie_port *pp, if (bus->number == pp->root_bus_nr && dev > 0) return 0; - /* - * do not read more than one device on the bus directly attached - * to RC's (Virtual Bridge's) DS side. - */ - if (bus->primary == pp->root_bus_nr && dev > 0) - return 0; - return 1; } |