Jisheng Zhang 7e57fd1444 PCI: designware: Move Root Complex setup code to dw_pcie_setup_rc()
dw_pcie_host_init() looks up host bridge resources, ioremaps them, creates
IRQ domains, and enumerates devices below the bridge.  dw_pcie_setup_rc()
programs the Root Complex registers.  The Root Complex may lose power
during suspend-to-RAM, and when we resume, we want to redo the latter but
not the former.

Move some Root Complex programming from dw_pcie_host_init() to
dw_pcie_setup_rc() where it belongs.  DesignWare-based drivers can call
dw_pcie_setup_rc() in their resume paths.

[Niklas Cassel <niklas.cassel@axis.com>:  This change moves outbound ATU
programming, which uses pp->mem_base, to dw_pcie_setup_rc().  Apply the
dra7xx pp->mem_base update before calling dw_pcie_setup_rc().]

[bhelgaas: changelog, fold in dra7xx fix from Niklas]
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
2016-04-05 17:04:27 -05:00
..
2015-08-13 15:59:59 -05:00
2016-03-19 15:38:41 -07:00
2016-03-19 15:38:41 -07:00
2016-03-10 14:44:13 -06:00
2016-01-21 11:52:16 -08:00
2014-06-10 20:20:19 -06:00
2016-03-16 14:45:55 -07:00
2016-03-15 08:56:28 -05:00
2014-06-10 20:20:19 -06:00
2016-03-15 08:56:28 -05:00
2014-06-10 20:20:19 -06:00