PCI: endpoint: Allocate enough space for fixed size BAR
authorAlan Mikhak <alan.mikhak@sifive.com>
Thu, 23 May 2019 21:47:59 +0000 (14:47 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 11 Jun 2019 09:55:22 +0000 (10:55 +0100)
commitf16fb16ed16c7f561e9c41c9ae4107c7f6aa553c
tree927837209d527c76609ad513fb3fe0eee0ac5d7c
parentdb7a62482d2f6a63f36f30f62c4cbf1e53035719
PCI: endpoint: Allocate enough space for fixed size BAR

PCI endpoint test function code should honor the .bar_fixed_size parameter
from underlying endpoint controller drivers or results may be unexpected.

In pci_epf_test_alloc_space(), check if BAR being used for test
register space is a fixed size BAR. If so, allocate the required fixed
size.

Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/endpoint/functions/pci-epf-test.c