From: Po Liu Date: Mon, 29 Aug 2016 07:26:58 +0000 (+0800) Subject: PCI: xilinx: Relax device number checking to allow SR-IOV X-Git-Tag: v4.9-rc1~92^2~2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8e7ca8ca5fd8a3242289105723c429733be8b73b;p=karo-tx-linux.git 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 Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index a30e01639557..75c89dbadad9 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c @@ -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; }