PCI: fix SR-IOV function dependency link problem
authorYu Zhao <yu.zhao@intel.com>
Wed, 20 May 2009 09:11:57 +0000 (17:11 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 11 Jun 2009 19:04:20 +0000 (12:04 -0700)
commit4d135dbee7b0a89e946f7ba284f2b957505a2c3a
tree332fb82ad8721cd1c3b8f0260971b2389f76ad5a
parentaf4c5f985afd8d4cfdf402aaa03677f2cb96e37c
PCI: fix SR-IOV function dependency link problem

PCIe root complex integrated endpoint does not implement ARI, so this
kind of endpoint uses 3-bit function number. The function dependency
link of the integrated endpoint should be calculated using the device
number plus the value from function dependency link register.

Normal endpoint always implements ARI and the function dependency link
register contains 8-bit function number (i.e. `devfn' from software's
perspective).

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/iov.c