]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a56c275d1ad7f374b10d9c5d844072fd3e09839
tree927837209d527c76609ad513fb3fe0eee0ac5d7c
parent127b844fc92fceffb025cb12081ba8aa8cad36f3
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