PCI: pci-epf-test: Do not allocate next BARs memory if current BAR is 64Bit
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 14 Jan 2019 11:15:08 +0000 (16:45 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 15 Feb 2019 10:00:18 +0000 (10:00 +0000)
commitb866c56b66d88a632e2fa6b922c4ea051937acbd
tree7eaf18c113bcab394b379915ac46eb487e61b5eb
parent0342e9a797db42a7d4d083d10b5d3f38b0cfc193
PCI: pci-epf-test: Do not allocate next BARs memory if current BAR is 64Bit

It's useless to allocate memory for next BAR if the current BAR is a
64Bit BAR. Stop allocating memory for the next BAR, if the current
BARs flag indicates this is a 64Bit BAR.

Tested-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/endpoint/functions/pci-epf-test.c