Skip to content

Commit e18934b

Browse files
liupoerbjorn-helgaas
authored andcommitted
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 <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Jingoo Han <[email protected]>
1 parent d99e30b commit e18934b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/pci/host/pcie-designware.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,6 @@ static int dw_pcie_valid_config(struct pcie_port *pp,
670670
if (bus->number == pp->root_bus_nr && dev > 0)
671671
return 0;
672672

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-
680673
return 1;
681674
}
682675

0 commit comments

Comments
 (0)