diff options
author | Po Liu <po.liu@nxp.com> | 2016-08-29 03:26:58 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-12 17:39:20 -0400 |
commit | e18934b5e9c78bb8c223b323275c14a0968e2737 (patch) | |
tree | 775a70e0af84d42559a4c5bdfda03089dbbff923 | |
parent | d99e30b7936ad2214548e33d8de15584c741bdb4 (diff) |
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>
-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, | |||
670 | if (bus->number == pp->root_bus_nr && dev > 0) | 670 | if (bus->number == pp->root_bus_nr && dev > 0) |
671 | return 0; | 671 | return 0; |
672 | 672 | ||
673 | /* | ||
674 | * do not read more than one device on the bus directly attached | ||
675 | * to RC's (Virtual Bridge's) DS side. | ||
676 | */ | ||
677 | if (bus->primary == pp->root_bus_nr && dev > 0) | ||
678 | return 0; | ||
679 | |||
680 | return 1; | 673 | return 1; |
681 | } | 674 | } |
682 | 675 | ||