]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Ignore requested alignment for IOV BARs
authorYongji Xie <xyjxie@linux.vnet.ibm.com>
Wed, 15 Feb 2017 06:50:22 +0000 (14:50 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Apr 2017 19:47:19 +0000 (14:47 -0500)
commitea629d873f3e140fb2e3181c30413e485ee9002b
tree6f3d4ddbc4ef06422b7944b5fe3e5a217fac4912
parent76dc52684d0f72971d9f6cc7d5ae198061b715bd
PCI: Ignore requested alignment for IOV BARs

We would call pci_reassigndev_resource_alignment() before
pci_init_capabilities().  So the requested alignment would never work for
IOV BARs.

Furthermore, it's meaningless to request additional alignment for IOV BARs,
the IOV BAR alignment is only determined by the VF BAR size.

Signed-off-by: Yongji Xie <xyjxie@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
drivers/pci/pci.c