Skip to content

Commit 8e7ca8c

Browse files
liupoerbjorn-helgaas
authored andcommitted
PCI: xilinx: 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]>
1 parent e18934b commit 8e7ca8c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/pci/host/pcie-xilinx.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
168168
if (bus->number == port->root_busno && devfn > 0)
169169
return false;
170170

171-
/*
172-
* Do not read more than one device on the bus directly attached
173-
* to RC.
174-
*/
175-
if (bus->primary == port->root_busno && devfn > 0)
176-
return false;
177-
178171
return true;
179172
}
180173

0 commit comments

Comments
 (0)