]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
PCI: Xilinx: Read more than one function per device
authorBharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
Mon, 1 Aug 2016 13:03:53 +0000 (18:33 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 3 Aug 2016 11:59:17 +0000 (13:59 +0200)
AXI PCIe supports multifunciton device.
Removing unneccessary condition.

Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/pci/host/pcie-xilinx.c

index 86d13011374e2a08ec759fb61491526ddb2d2190..e4bdbf9d1c4a8e5178b4084b3c142c760404a81d 100644 (file)
@@ -170,13 +170,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;
 }