diff options
author | Xiaowei Bao <xiaowei.bao@nxp.com> | 2019-08-14 10:03:29 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-07 18:59:28 +0200 |
commit | 677540cb39e0ef8a845c5662458f6440b0e7050d (patch) | |
tree | 7c0e044c82581c485b35fd3dca4b540cc56fa956 | |
parent | 97c3d2a3dd8ff8467b7b3ecb251ad3e663c02446 (diff) | |
download | linux-stable-677540cb39e0ef8a845c5662458f6440b0e7050d.tar.gz linux-stable-677540cb39e0ef8a845c5662458f6440b0e7050d.tar.bz2 linux-stable-677540cb39e0ef8a845c5662458f6440b0e7050d.zip |
PCI: layerscape: Add the bar_fixed_64bit property to the endpoint driver
[ Upstream commit fd5d16531a39322c3d7433d9f8a36203c9aaeddc ]
The layerscape PCIe controller have 4 BARs.
BAR0 and BAR1 are 32bit, BAR2 and BAR4 are 64bit and that's a
fixed hardware configuration.
Set the bar_fixed_64bit variable accordingly.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c index be61d96cc95e..ca9aa4501e7e 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -44,6 +44,7 @@ static const struct pci_epc_features ls_pcie_epc_features = { .linkup_notifier = false, .msi_capable = true, .msix_capable = false, + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), }; static const struct pci_epc_features* |