PCI: designware: 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:39:20 +0000 (16:39 -0500)
commite18934b5e9c78bb8c223b323275c14a0968e2737
tree775a70e0af84d42559a4c5bdfda03089dbbff923
parentd99e30b7936ad2214548e33d8de15584c741bdb4
PCI: designware: 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: Jingoo Han <jingoohan1@gmail.com>
drivers/pci/host/pcie-designware.c