]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
PCI: Separate VF BAR updates from standard BAR updates
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Jan 2017 21:31:35 +0000 (14:31 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 26 Jan 2017 16:36:54 +0000 (14:36 -0200)
commit8d0dd6fce9fcd301867bc4a0e2d507ed394e3a1f
tree248832a596d4d57c61609d588a23b5f473e3273d
parenta602ebafc7d2fa4b83afdc9ec566dbdfd2cb8f12
PCI: Separate VF BAR updates from standard BAR updates

BugLink: http://bugs.launchpad.net/bugs/1625318
Previously pci_update_resource() used the same code path for updating
standard BARs and VF BARs in SR-IOV capabilities.

Split the VF BAR update into a new pci_iov_update_resource() internal
interface, which makes it simpler to compute the BAR address (we can get
rid of pci_resource_bar() and pci_iov_resource_bar()).

This patch:

  - Renames pci_update_resource() to pci_std_update_resource(),
  - Adds pci_iov_update_resource(),
  - Makes pci_update_resource() a wrapper that calls the appropriate one,

No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
(cherry picked from commit 6ffa2489c51da77564a0881a73765ea2169f955d)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/pci/iov.c
drivers/pci/pci.h
drivers/pci/setup-res.c