PCI: imx: Initial imx7d pm support
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 27 Aug 2018 11:28:37 +0000 (14:28 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 18 Sep 2018 09:13:14 +0000 (10:13 +0100)
commit0ee2c1f2429f74328c82ea559b127c96d5224ccd
tree3c413ccf68b77946ffe4ed4f01d1413bd343307d
parentf18f42d7497dbbde3ff314d0ad585b827ea74e48
PCI: imx: Initial imx7d pm support

On imx7d the pcie-phy power domain is turned off in suspend and this can
make the system hang after resume when attempting any read from PCI.

Fix this by adding minimal suspend/resume code. This will prepare for
powering down on suspend and reset the block on resume.

Code is only for imx7d but a very similar sequence can be used for
other SOCs.

Original-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
[lorenzo.pieralisi@arm.com: commit log update]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/controller/dwc/pci-imx6.c