aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/host/pci-mvebu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index afd2af04980c..18057905689a 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -342,8 +342,6 @@ static void mvebu_pcie_handle_iobase_change(struct mvebu_pcie_port *port)
342 mvebu_mbus_add_window_remap_by_id(port->io_target, port->io_attr, 342 mvebu_mbus_add_window_remap_by_id(port->io_target, port->io_attr,
343 port->iowin_base, port->iowin_size, 343 port->iowin_base, port->iowin_size,
344 iobase); 344 iobase);
345
346 pci_ioremap_io(iobase, port->iowin_base);
347} 345}
348 346
349static void mvebu_pcie_handle_membase_change(struct mvebu_pcie_port *port) 347static void mvebu_pcie_handle_membase_change(struct mvebu_pcie_port *port)
@@ -988,6 +986,10 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
988 } 986 }
989 987
990 pcie->nports = i; 988 pcie->nports = i;
989
990 for (i = 0; i < (IO_SPACE_LIMIT - SZ_64K); i += SZ_64K)
991 pci_ioremap_io(i, pcie->io.start + i);
992
991 mvebu_pcie_msi_enable(pcie); 993 mvebu_pcie_msi_enable(pcie);
992 mvebu_pcie_enable(pcie); 994 mvebu_pcie_enable(pcie);
993 995