]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc61daa6c50e54593f2b74d127aa5580e8becc126
tree3c413ccf68b77946ffe4ed4f01d1413bd343307d
parent6b5fa4247e0da475dac27c59cef7f2c849d5ecb1
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