PCI: xilinx: Relax device number checking to allow SR-IOV
[cascardo/linux.git] / drivers / pci / host / pcie-xilinx.c
index a30e016..75c89db 100644 (file)
@@ -168,13 +168,6 @@ static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
        if (bus->number == port->root_busno && devfn > 0)
                return false;
 
-       /*
-        * Do not read more than one device on the bus directly attached
-        * to RC.
-        */
-       if (bus->primary == port->root_busno && devfn > 0)
-               return false;
-
        return true;
 }