summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPo Liu <po.liu@nxp.com>2016-08-29 15:26:58 +0800
committerBjorn Helgaas <bhelgaas@google.com>2016-09-12 16:39:20 -0500
commite18934b5e9c78bb8c223b323275c14a0968e2737 (patch)
tree775a70e0af84d42559a4c5bdfda03089dbbff923 /drivers
parentd99e30b7936ad2214548e33d8de15584c741bdb4 (diff)
downloadlinux-e18934b5e9c78bb8c223b323275c14a0968e2737.tar.gz
linux-e18934b5e9c78bb8c223b323275c14a0968e2737.tar.bz2
linux-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')
-rw-r--r--drivers/pci/host/pcie-designware.c7
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;
}