PCI: endpoint: Fix pci_epf_alloc_space() to set correct MEM TYPE flags
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 14 Jan 2019 11:15:06 +0000 (16:45 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 15 Feb 2019 09:59:48 +0000 (09:59 +0000)
commit5544d67ed11245ccb64099deb32831308297bf6b
tree042cb320a556122fd6c94f13e4ce445cdc0c8149
parent1e9efe6c9976552e88c6e6feaca3a78b8cf5aaf6
PCI: endpoint: Fix pci_epf_alloc_space() to set correct MEM TYPE flags

pci_epf_alloc_space() sets the MEM TYPE flags to indicate a 32-bit
Base Address Register irrespective of the size. Fix it here to indicate
64-bit BAR if the size is > 2GB.

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/pci-epf-core.c