summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc/pcie-designware-ep.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2017-08-18 20:28:02 +0530
committerBjorn Helgaas <bhelgaas@google.com>2017-08-29 16:00:38 -0500
commita937fe087aa1de5df35c31a261b0f5f6808a7052 (patch)
treebe8dccbe862bb3ae6e4e6121764afcd2f6e20ca6 /drivers/pci/dwc/pcie-designware-ep.c
parent2ca93ffa93122324ce3b0e728d6e80671ea53f17 (diff)
downloadblackbird-op-linux-a937fe087aa1de5df35c31a261b0f5f6808a7052.tar.gz
blackbird-op-linux-a937fe087aa1de5df35c31a261b0f5f6808a7052.zip
PCI: dwc: designware: Provide page_size to pci_epc_mem
Use the newly introduced __pci_epc_mem_init() instead of pci_epc_mem_init() to provide page_size to pci_epc_mem. This is in preparation for adding EP support to K2G which has a restriction that the address region should be either divided into 1MB/2MB/4MB or 8MB sizes (Ref: 11.14.4.9.1 Outbound Address Translation in K2G TRM SPRUHY8F January 2016 – Revised May 2017). Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/dwc/pcie-designware-ep.c')
-rw-r--r--drivers/pci/dwc/pcie-designware-ep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pcie-designware-ep.c b/drivers/pci/dwc/pcie-designware-ep.c
index 398406393f37..e70ebe3b9b6f 100644
--- a/drivers/pci/dwc/pcie-designware-ep.c
+++ b/drivers/pci/dwc/pcie-designware-ep.c
@@ -328,7 +328,8 @@ int dw_pcie_ep_init(struct dw_pcie_ep *ep)
if (ret < 0)
epc->max_functions = 1;
- ret = pci_epc_mem_init(epc, ep->phys_base, ep->addr_size);
+ ret = __pci_epc_mem_init(epc, ep->phys_base, ep->addr_size,
+ ep->page_size);
if (ret < 0) {
dev_err(dev, "Failed to initialize address space\n");
return ret;
OpenPOWER on IntegriCloud