PCI: altera: Relax device number checking to allow SR-IOV
authorPo Liu <po.liu@nxp.com>
Mon, 29 Aug 2016 07:26:58 +0000 (15:26 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 12 Sep 2016 21:32:36 +0000 (16:32 -0500)
commitd99e30b7936ad2214548e33d8de15584c741bdb4
tree627f50f06ff366a784b66998b0d3279328211a1b
parent156c55325d30261d250e88ed3a39f22008f4ca16
PCI: altera: 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 <po.liu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ley Foon Tan <lftan@altera.com>
drivers/pci/host/pcie-altera.c