linux/drivers/pci/host
Zhou Wang 9cdce1cdc0 Revert "PCI: designware: Program ATU with untranslated address"
Revert f4c55c5a3f ("PCI: designware: Program ATU with untranslated
address").

Note that dra7xx_pcie_host_init() now modifies pp->io_base, but we still
need the original value for dw_pcie_setup() in the path below, so this adds
a new io_base_tmp member.  It will be removed later when dw_pcie_setup() is
removed.

  dra7xx_add_pcie_port
    dw_pcie_host_init
      pp->io_base = range.cpu_addr
      pp->io_base_tmp = range.cpu_addr            # <-- added
      pp->ops->host_init
      dra7xx_pcie_host_init                       # ops->host_init
	pp->io_base &= DRA7XX_CPU_TO_BUS_ADDR     # <-- modified
      pci_common_init_dev(..., &dw_pci)
	pcibios_init_hw
	  hw->setup
	  dw_pcie_setup                           # hw_pci.setup
	    pci_ioremap_io(..., pp->io_base_tmp)  # <-- original addr required

[bhelgaas: changelog]
Tested-by: James Morse <james.morse@arm.com>
Tested-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Tested-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
2015-11-02 14:49:18 -06:00
..
Kconfig ARM: SoC 64-bit changes for v4.3 2015-09-01 13:29:48 -07:00
Makefile Merge branches 'pci/host-designware', 'pci/host-designware-common', 'pci/host-generic', 'pci/host-imx6', 'pci/host-iproc' and 'pci/host-xgene' into next 2015-06-16 08:19:55 -05:00
pci-dra7xx.c Revert "PCI: designware: Program ATU with untranslated address" 2015-11-02 14:49:18 -06:00
pci-exynos.c PCI: designware: Simplify dw_pcie_cfg_read/write() interfaces 2015-11-02 14:48:45 -06:00
pci-host-generic.c PCI: generic: Remove dependency on ARM-specific struct hw_pci 2015-08-20 12:02:49 -05:00
pci-imx6.c PCI: imx6: Simplify a trivial if-return sequence 2015-08-20 01:31:58 -05:00
pci-keystone-dw.c PCI: designware: Simplify dw_pcie_cfg_read/write() interfaces 2015-11-02 14:48:45 -06:00
pci-keystone.c PCI/keystone: Prepare irq handlers for irq argument removal 2015-07-16 23:31:37 +02:00
pci-keystone.h PCI: designware: Make get_msi_addr() return phys_addr_t, not u32 2015-09-18 13:58:35 -05:00
pci-layerscape.c PCI: designware: Wait for link to come up with consistent style 2015-06-10 13:52:59 -05:00
pci-mvebu.c PCI: Drop references acquired by of_parse_phandle() 2015-08-20 12:02:50 -05:00
pci-rcar-gen2.c PCI: rcar: Verify that mem_res is 64K-aligned 2015-02-24 00:24:19 -06:00
pci-tegra.c PCI: Kill off set_irq_flags() usage 2015-08-11 15:17:43 -05:00
pci-versatile.c Merge branches 'pci/host-exynos', 'pci/host-iproc', 'pci/host-keystone', 'pci/host-layerscape', 'pci/host-mvebu', 'pci/host-rcar' and 'pci/host-versatile' into next 2015-04-10 08:26:54 -05:00
pci-xgene-msi.c Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-09-01 14:33:35 -07:00
pci-xgene.c Merge branches 'pci/enumeration' and 'pci/misc' into next 2015-08-28 15:53:08 -05:00
pcie-designware.c Revert "PCI: designware: Program ATU with untranslated address" 2015-11-02 14:49:18 -06:00
pcie-designware.h Revert "PCI: designware: Program ATU with untranslated address" 2015-11-02 14:49:18 -06:00
pcie-iproc-bcma.c PCI: iproc: Free resource list after registration 2015-05-27 18:34:05 -05:00
pcie-iproc-platform.c PCI: iproc: Free resource list after registration 2015-05-27 18:34:05 -05:00
pcie-iproc.c PCI: iproc: enable arm64 support for iProc PCIe 2015-07-29 22:07:02 +02:00
pcie-iproc.h PCI: iproc: enable arm64 support for iProc PCIe 2015-07-29 22:07:02 +02:00
pcie-rcar.c PCI: Kill off set_irq_flags() usage 2015-08-11 15:17:43 -05:00
pcie-spear13xx.c PCI: designware: Simplify dw_pcie_cfg_read/write() interfaces 2015-11-02 14:48:45 -06:00
pcie-xilinx.c Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-09-01 14:33:35 -07:00