PCI: delay configuration of SRIOV capability
authorRam Pai <linuxram@us.ibm.com>
Sun, 6 Nov 2011 02:33:57 +0000 (10:33 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 6 Jan 2012 20:10:49 +0000 (12:10 -0800)
commitafd24ece5c76af87f6fc477f2747b83a764f161c
treede109314a682a9ed78a61c4838663b9645f7b0c5
parent79cc9601c3e42b4f0650fe7e69132ebce7ab48f9
PCI: delay configuration of SRIOV capability

The SRIOV capability, namely page size and total_vfs of a device are
configured during enumeration phase of the device.  This can potentially
interfere with the PCI operations of the platform, if the IOV capability
of the device is not enabled.

The following patch postpones the configuration of the IOV capability of
the device to a later point, when the IOV capability is explicitly
enabled by the device driver.

The patch is tested on x86 and power platform.

Tested-by: Donald Dutile <ddutile@redhat.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/iov.c